-
Notifications
You must be signed in to change notification settings - Fork 565
[Go] change embedder plugins to use Init and New #274
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
Conversation
This will permit code to get a Retriever without looking up an action. This is how the googleai package works.
|
Thanks Ian. AFAIU, we should use Is that correct? |
|
@ssbushi Yes, that's correct. We can change that if something else seems better, but let's at least be consistent for now. |
| // New returns an [ai.Retriever] that uses Pinecone. | ||
| // | ||
| // apiKey is the API key to use to access Pinecone. | ||
| // If it is the empty string, it is read from the PINECONE_API_INDEX |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| // If it is the empty string, it is read from the PINECONE_API_INDEX | |
| // If it is the empty string, it is read from the PINECONE_API_KEY |
* Clean up doc strings, make them more clickable. * fix EmbedOptions type
* [Go] Simple RAG sample, using localvec --------- Co-authored-by: Ian Lance Taylor <iant@golang.org>
…tput conformance. (#251)
|
I've somehow broken this pull request by trying to merge other changes. Will start again. |
|
Replaced by #276. Sorry for the hassle. |
Change the pinecone and localvec plugins to use a
Newfunction thatreturns an
ai.Retriever, and anInitfunction that registers one with genkit.This makes the pinecone and localvec plugins consistent with each other,
and with other plugins such as googleai.