Allow custom embeddings ?
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start in chains.py at load_embedding_model, specifically the OllamaEmbeddings branch around lines 36-39. Review how the current model and configuration are selected, then determine the intended configuration for a custom model name and embedding dimension. Done means the requested embedding choices can be selected without changing the source code.
Written by the indexing model from the issue text.
Description
I am not sure if it is a good idea.. just AI amateur-enthusiast here. but i would like to try different embeddings. selecting ollama as embedding defaults to llama2.. but could we mb use env var for that
mb allow modifying dimension also?
option 1: separate variable for name
EMBEDDING_MODEL=ollama
EMBEDDING_MODEL_NAME=nomic-embed-text
option 2: spliting value (not ideal i guess)
EMBEDDING_MODEL=ollama/nomic-embed-text
Alt: mb allow fully custom HuggingFaceEmbeddings ?
in load_embedding_model (chains.py@L36-39):
if embedding_model_name == "ollama":
embeddings = OllamaEmbeddings(
base_url=config["ollama_base_url"], model="llama2"
)
- Dominant language
- Python
- Stars
- 5.4k
- Forks
- 1.2k
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from docker/genai-stack
-
Difficulty 4/5 3-5 days Newbie friendliness 15/100
docker/genai-stack#207 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 25/100
docker/genai-stack#205 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
docker/genai-stack#195 · 3 comments ·
-
Bot is unresponsive Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
docker/genai-stack#194 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
docker/genai-stack#191 · 1 comment ·
All issues in docker/genai-stack
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100