apirrone / Memento

Memento is a Python app that records everything you do on your computer and lets you go back in time, search, and chat with a LLM (Large Language Model) to find back information about what you did.
MIT License
482 stars 37 forks source link

[Backend] Maybe go back to previous embedding function #29

Open apirrone opened 10 months ago

apirrone commented 10 months ago

Did it run locally ?

With openai embeddings you could get :

Retrying langchain.embeddings.openai.embed_with_retry.<locals>._embed_with_retry in 4.0 seconds as it raised 
APIConnectionError: Error communicating with OpenAI: HTTPSConnectionPool(host='api.openai.com', port=443): Max retries 
exceeded with url: /v1/embeddings (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 
0x7f8289f978b0>: Failed to resolve 'api.openai.com' ([Errno -3] Temporary failure in name resolution)")).