#๐Ÿ”’ API Integration not working as expected

24 messages ยท Page 1 of 1 (latest)

astral nebulaBOT
#

@left heart

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

left heart
#

Im trying to build a travel itinerary generator that takes user input and gets an AI generated itinerary based on it. I have used eden API's prompt optimization and text generator, but the prompt optimization always returns "Given the following text and a list of entities, please extract and list all occurrences of the specified entities in the text. The entities to be extracted are [entities]. The text for entity extraction is [text]."
Because of this result the text generator always returns "AI Assistant: Hello! I am your AI assistant. I am here to help you with anything you need. What can". The relevant code is in this link:
https://paste.pythondiscord.com/53BA

rare zealot
#

can you post the snippet for the request code?

left heart
#

wdym? im sry i just started web dev im not rlly aware of the terms

vale valve
#

please conceal it next time

rare zealot
left heart
rare zealot
#

is Eden api capable of prompt optimization?

left heart
#

it says so but

#

i was rlly wondering if the prompt optimization is rlly even needed?

rare zealot
left heart
#

ok

rare zealot
#

aur maybe you can just extract the itinary arguments from the form like you are doin

#

and then add them to a pre written prompt

#

and just simply give that prompt to your API

#

so ig prompt optimization might not be needed

left heart
#

yes thats what i was thinking of

#

i will do that

#

Also wanted to know, since im storing the user's input in a SQLite database until they logout, is it possible to use those values in the generation prompt?

astral nebulaBOT
#
Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.