Closed Ch41r05 closed 1 year ago
Hi, I cannot reproduce.
I freshly installed retriv
and its working correctly in my environment.
I suspect it's an issue related to your operating system (see this).
Let me know if the following snippet works:
from retriv import SearchEngine
def main():
collection = [
{"id": "doc_1", "text": "Generals gathered in their masses"},
{"id": "doc_2", "text": "Just like witches at black masses"},
{"id": "doc_3", "text": "Evil minds that plot destruction"},
{"id": "doc_4", "text": "Sorcerer of death's construction"},
]
se = SearchEngine("new-index").index(collection)
results = se.search("witches masses")
print(results)
if __name__ == '__main__':
main()
Thanks @AmenRa , that was my case, stupidly forgot to check if that clause was there.
You are welcome!
Please, consider giving retriv
a star if you like it.
Hi AmenRa,
First of all I'd like to thank you for your efforts. I'm trying to use retriv, but when I use the sample code you provided in the readme, I get the following error:
By just running the example code:
Could you please help me fix this issue?