-
Notifications
You must be signed in to change notification settings - Fork 105
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
FAILED_PRECONDITION Error with RAG Implementation #343
Comments
Another question about setting the contentField property in the retriever. Can i combine text into one field. For example i have 3 fields: category, mechanics and description and created a new field called 'content' that combined these 3 fields into one paragraph. Which I created a vector embedding based on this field. |
Another question: Do i need to manipulate the docs data to certain type of object of the LLM to understand better? |
|
Can you share your prompt, and your genkit config? In particular what model are you using? It seems maybe the large context is confusing the model a bit, and it's unable to produce a response in the output format you requested. |
Closing this as stale for now, feel free to reopen if this is still an issue. |
Describe the bug
Implementing a semantic search for board games using Firestore and the RAG implementation with the retriever based from this article
https://firebase.google.com/docs/genkit/plugins/firebase
I did generate vector embeddings for 60K for the Firestore documents and defined a Flow (as below).
When I increase the limit in the retrieve method I always get this error:
FAILED_PRECONDITION: Generation resulted in no candidates matching provided output schema.
If I submit the same prompt with a limit of 5 instead, it works as expected.
To Reproduce
Expected behavior
Just get the results as expected with the same query
Runtime (please complete the following information):
** Node version
Additional context
How does the generate() and LLMs work?
Also takes a very long time to get a response. Is there a way to increase performance?
The text was updated successfully, but these errors were encountered: