Find answers from the community

Updated 3 months ago

Hey All I implemented a Custom Embedding

Hey All! I implemented a Custom Embedding class to support the PaLM API, and have run into an error once I get to query_engine.query(). The embedding variable passed down from the base query engine is empty, so I get a numpy error
c
1 comment
I have verified that I get embeddings back when _get_text_embeddings() is called, so I know that there is data. Not sure how to connect the embeddings retrieved from the embedding class to the query_engine, which seemingly doesn't have the embeddings where it needs them. I do see that NodesWithEmbeddings are created in a similar fashion as to OpenAIEmbedding
Add a reply
Sign up and join the conversation on Discord