Comments (1)
Actually, the issue is that by default langchain add an option : embed_instruction embed_instruction: str = "passage: "
And it kills everything with 'mxbai-embed-large'.
So to pass the test we need to add this when declaring model :
ollama_emb = OllamaEmbeddings(model="mxbai-embed-large", embed_instruction="")
I don't know if it is a good example to be actually accurate.
What do you think that we need to use?
I am going to try :
The mxbai-embed-large blog says to use :
- for embedding docs : embed_instruction = ""
- for query : query_instruction = "Represent this sentence for searching relevant passages: "
It works well with that.
from langchain.
Related Issues (20)
- create_tool_calling_agent is not working for AzureChatOpenAI HOT 1
- create_tool_calling_agent only return tool result in json instead of a straightfoward answer HOT 5
- YandexGPT client returns an error when invoked
- [BUG] Logic error when nesting Chain, and no error message HOT 5
- Unable to insert GraphDocuments into Memgraph
- Langchain document loader giving "Resource punkt_tab not found" error HOT 1
- Redis cache ValidationError on retrieval
- DuckDuckGo tool max_results not working as described in docs
- chroma impl issue
- CallbackManager.merge(): Parent run IDs do not match warning when using subgraphs HOT 2
- SelfQueryRetriever interprets numbers in queries as strings
- langchain dumps not always implemented - Improve langchain runnable serialization HOT 3
- docs: expand cache integrations HOT 1
- NameError: name 'pd' is not defined /
- Bug: convert_to_openai_function can't handle python functions with pydantic v2 args
- Error building Component CSVAgent: [Errno 22] Invalid argument:
- ReAct agent creating own "User Input" and ending up stopping agent with iteration limit
- OllamaEmbeddings cannot be configured for external provider adding base_url and auth as documentation said
- We could not parse the JSON body of your request. The content of 'assistant' should be a string type. HOT 2
- AzureMLChatOnlineEndpoint - outdated endpoint_url validation
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 langchain.