Comments (4)
Hello, I just wanted to add that I am getting a similar error, but with postgres. I am using docker and I fixed this error adding :
RUN /py/bin/pip install embedchain && \ /py/bin/pip install --upgrade 'embedchain[postgres]'
However, I when I called app.query("what ever question") I am getting something that looks like the prompt, and not the answer. Example of response when calling app.query(): "\nYou are a Q&A expert system. Your responses must always be rooted in the context provided for each query. Here are some guidelines to follow:\n\n1. Refrain from explicitly mentioning the context provided in your response.\n2. The context should silently guide your answers without being directly acknowledged.\n3. Do not use phrases such as 'According to the context provided', 'Based on the context, ...' etc.\n\nContext information:
.
The way how I am creating the app instance is the following :
from embedchain import App
app = App.from_config("mistral.yaml")
I am still trying to get the answer when calling app.query() function.
from embedchain.
I got similar error with embedchain also after running the 'pip install --upgrade "embedchain[dataloaders]"' command however it seems that the embedchain is using langchain-community version 0.0.20 which seems to cause the problem. I downgraded the langchain-community package to version 0.0.19 (pip install langchain-community==0.0.19). After that it started working. However there might be dependency problems with the solution. More here: https://stackoverflow.com/questions/77994079/no-module-named-pwd-while-use-from-langchain-community-document-loaders-impor
from embedchain.
@meru2024 Here you need to install extra packages for PDF file loader using this command pip install --upgrade "embedchain[dataloaders]"
from embedchain.
@AnaArkus Can you please share the complete code like what's the data source and which model are you using?
from embedchain.
Related Issues (20)
- Embedchain asks for OpenAI key even if config is being provided with LLM key HOT 1
- How to save and load a database to local HOT 4
- version mismatch langhchan-openai HOT 3
- Over resource limits on Streamlit Cloud
- Over resource limits on Streamlit Cloud HOT 1
- Add PremAI Python SDK
- Add the feature to have custom config
- ImportError: cannot import name 'MessageContentText' from 'openai.types.beta.threads' HOT 1
- Any updates for the version mismatch with langchain-openai? HOT 1
- Lots of deprecation warnings
- PydanticImportError: `BaseSettings` has been moved to the `pydantic-settings` HOT 1
- TypeError: unhashable type: 'list'
- Response from other websites HOT 1
- How can i set trust_remote_code = True ?
- Unable to access Ollama embedding model on remote machine HOT 1
- Pytest individual tests fail for llms becuase default db setup is not executed.
- "poetry run pytest" on main branch returns 14 Import Errors HOT 4
- Issue on docs HOT 1
- whatsapp docker only available in ARM
- bad request error when using GET query method of rest-api docker
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedchain.