Question on text embeddings - why does this code not work properly? #27303
Replies: 1 comment
-
Hey @basementmedia2! I'm here to help you with any bugs, questions, or contributions. Let's tackle this issue together! It seems like the issue might be related to how the embeddings are being generated or how the similarity search is configured. Here are a few things to check and try:
By checking these aspects, you should be able to identify where the problem lies and adjust accordingly. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I use this code to create a vector database (chroma):
And i use this code to find relevant text passages in the database:
Creating the ChromaDB seems to work.
But althought the word "monkey" comes multiple times in the text file (pottinger.txt) it does not find relevant passages. Even if i set threshold to 0.2.
I have tested several embedding models from huggingface - always the same result.
What am i doing wrong?
Best wishes
Daniel
Beta Was this translation helpful? Give feedback.
All reactions