-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
ValueError: Expected where to have exactly one operator, got {} in query. #2039
Comments
Hi there! I've taken a look at the issue you're experiencing with the Embedchain search method. The error Here are a few things to try:
from embedchain import App
from chromadb.config import Settings
# Try specifying explicit Chroma settings
app = App(config={
"collection_name": "my_collection",
"persist_directory": "./chroma_db"
})
# Try specifying explicit search parameters
context = app.search("What is the net worth of Elon?",
num_documents=2,
where={}) # Explicitly pass an empty dict
app = App()
app.add("https://www.forbes.com/profile/elon-musk")
app.query() # Ensure database is populated
context = app.search("What is the net worth of Elon?", num_documents=2) A few additional troubleshooting steps:
Could you confirm:
Let me know if any of these suggestions help or if you need more detailed guidance! |
My issue is caused by a slight typo in the source code. PR here: #2042 |
🐛 Describe the bug
This example from the docs: https://docs.embedchain.ai/api-reference/app/search,
when used verbatim, raises this exception:
My python version: 3.10.15
My embedchain version: 0.1.125
The text was updated successfully, but these errors were encountered: