Within the Chroma DB, similarity_search has a default "k" of 4. However, if there are less than 4 results to return to the query, it will crash instead of returning whatever is available. Run similarity search with Chroma. Parameters query (str) – Query text to search for. k (int)...
fixed the filtering error in chromadb#1621 Merged ejdb00mentioned this issueMar 21, 2023 Feel free to close my duplicate fix or incorporate the unit tests from that branch into the original fix PR. In either case, any idea when this might make it into a release? The ability to search ov...
这里我们很明显的就可以看到chroma的similarity_search方法可以根据问题的语义去数据库中搜索与之相关性最高的文档也就是搜索到了第一句和第二句的文本,但这似乎有存在一些问题,因为第一句和第二句的含义非常接近,他们都是描述“鹅膏菌”及其“子实体”的,所以假如只返回其中的一句就足以满足要求了,如果返回两句含义非...
db = Chroma.from_documents(texts, embeddings) docs_score = db.similarity_search_with_score(query=query, distance_metric="cos", k = 6) Observation: I prefer to use cosine to try to avoid the curse of high dimensionality, not depending on scale, etc etc. ...
nlp sentence-similarity chromadb nlp-azerbaijan Updated Dec 23, 2023 Python tanalpha-aditya / Advanced_Semantic_similarity Star 1 Code Issues Pull requests Semantic similarity methodolgies including multilingual appraoches multilanguage nlp-machine-learning semantic-analysis sentence-similarity indian-la...
Update chroma.py #10055 Closed Knight1997 commented Sep 8, 2023 for weaviate DB it's simple and i think it would be similar for others too. just pass the additional params as seach_kwargs in retriever. Weaviate().as_retriever(search_kwargs={"additional": ["vector", "certainty", "...
Towards a better Ruby Gem search :). Contribute to floere/gemsearch development by creating an account on GitHub.
chromadb.errors.NotEnoughElementsException: Number of requested results 4 cannot be greater than number of elements in index 1 I believe a check is needed to return whatever is available whenever the results are < k. Edit: You can setk=1for the search, but then you are artificially limiting...