-
Notifications
You must be signed in to change notification settings - Fork 21
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sample: RAG example #42
Comments
you bet. that's called RAG (Retrieval Augmented Generation) and you can do that via the |
You can see the mechanics in the logging sample. |
So to be clear, I would include the recipe as an attachment, and every question the user would ask the attachment will be included in the |
You could but I wouldn't recommend it. The R in RAG means that you process each prompt that the user provides and search your app's data store to find the appropriate data. The data your search turns up is the data you send. |
Okay, so when you say |
You have your choice of updating the user's prompt and optionally adding an attachment. |
Okay thanks for your help, and thanks for your work on this package, I think it could be a great addition to our app. |
This is mainly a question which could be a feature request.
Is it possible to provide some context with the users chat?
What I mean with that is; let's say they are looking at a recipe in my application, and they want to ask the question "Is this a healthy meal?". I would then like to provide the recipe, along with the question to the AI.
Thanks for any help.
The text was updated successfully, but these errors were encountered: