8000 [Embedding] Support Ollama embedding by finaldie · Pull Request #81 · finaldie/auto-news · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Embedding] Support Ollama embedding #81

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 9 commits into from
Jul 17, 2024
Merged

Conversation

finaldie
Copy link
Owner
@finaldie finaldie commented Jul 16, 2024

Changes

  • [New] Support Ollama as an embedding provider
  • [New] A new embedding_utils for easier filtering/sorting relevant candidates according to the metric type
  • [Fix] Embedding clean-up compatible with the new Ollama collection naming format
  • [Enhance] Configurable Milvus similarity metric type: L2, IP, COSINE, ...

New Env Variables

Ollama Embedding

In build/.env or build/.env.k8s, if we want to switch to Ollama embedding, change the below section

...
# The generic Text embedding provider. Supported providers:
# openai, hf, hf_inst, ollama
EMBEDDING_PROVIDER=ollama

# models:
# - openai: text-embedding-ada-002, text-embedding-3-small, ...
# - ollama: nomic-embed-text, ...
EMBEDDING_MODEL=nomic-embed-text
...

Milvus Similarity Metric Type

We can chose the one which fit for the purpose:

# L2, IP, COSINE
MILVUS_SIMILARITY_METRICS=L2

@finaldie finaldie changed the title Undo.emb.ollama emb 240715 [Embedding] Support Ollama embedding Jul 16, 2024
@finaldie finaldie merged commit 5177087 into main Jul 17, 2024
2 checks passed
@finaldie finaldie deleted the undo.emb.ollama_emb-240715 branch July 17, 2024 01:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0