SonicWarrior1 / pdfchat

Local PDF Chat Application with Mistral 7B LLM, Langchain, Ollama, and Streamlit
MIT License
107 stars 37 forks source link

I walked through the guideline and got this error. #5

Closed ChuBL closed 6 months ago

ChuBL commented 6 months ago

ValueError: Expected EmbeddingFunction.call to have the following signature: odict_keys(['self', 'input']), got odict_keys(['self', 'args', 'kwargs']) Please see https://docs.trychroma.com/embeddings for details of the EmbeddingFunction interface. Please note the recent change to the EmbeddingFunction interface: https://docs.trychroma.com/migration#migration-to-0416---november-7-2023

OS: macOS Sonoma 14.3.1 ollama version is 0.1.27 mistral:latest 61e88e884507 4.1 GB

holytony commented 6 months ago

same MacOS, got the same error

SonicWarrior1 commented 6 months ago

Due to changes in ChromaDb it is incompatible with the langchain version used in this project. But its seems to be fixed in the latest versions, so u should try updating the dependencies and refer to this issue for more information.

I will be update the repo code in few days with updated dependencies.

ChuBL commented 6 months ago

Thank you! Updating langchain makes my day!