Fix incorrect syntax for uv pip install with extras

This commit is contained in:
Yiorgis Gozadinos 2025-07-20 22:40:12 +03:00
parent bb9fd16ca7
commit ad9879802a
No known key found for this signature in database
5 changed files with 13 additions and 13 deletions

View file

@ -33,7 +33,7 @@ EMBEDDINGS_VECTOR_DIM=1024
If you want to use VoyageAI embeddings you will need to install `haiku.rag` with the VoyageAI extras, If you want to use VoyageAI embeddings you will need to install `haiku.rag` with the VoyageAI extras,
```bash ```bash
uv pip install haiku.rag --extra voyageai uv pip install haiku.rag[voyageai]
``` ```
```bash ```bash
@ -47,7 +47,7 @@ VOYAGE_API_KEY="your-api-key"
If you want to use OpenAI embeddings you will need to install `haiku.rag` with the VoyageAI extras, If you want to use OpenAI embeddings you will need to install `haiku.rag` with the VoyageAI extras,
```bash ```bash
uv pip install haiku.rag --extra openai uv pip install haiku.rag[openai]
``` ```
and set environment variables. and set environment variables.
@ -76,7 +76,7 @@ OLLAMA_BASE_URL="http://localhost:11434"
For OpenAI QA, you need to install haiku.rag with OpenAI extras: For OpenAI QA, you need to install haiku.rag with OpenAI extras:
```bash ```bash
uv pip install haiku.rag --extra openai uv pip install haiku.rag[openai]
``` ```
Then configure: Then configure:
@ -92,7 +92,7 @@ OPENAI_API_KEY="your-api-key"
For Anthropic QA, you need to install haiku.rag with Anthropic extras: For Anthropic QA, you need to install haiku.rag with Anthropic extras:
```bash ```bash
uv pip install haiku.rag --extra anthropic uv pip install haiku.rag[anthropic]
``` ```
Then configure: Then configure:
@ -125,7 +125,7 @@ RERANK_MODEL="mixedbread-ai/mxbai-rerank-base-v2"
For Cohere reranking, install with Cohere extras: For Cohere reranking, install with Cohere extras:
```bash ```bash
uv pip install haiku.rag --extra cohere uv pip install haiku.rag[cohere]
``` ```
Then configure: Then configure:

View file

@ -15,19 +15,19 @@ For other embedding providers, install with extras:
### VoyageAI ### VoyageAI
```bash ```bash
uv pip install haiku.rag --extra voyageai uv pip install haiku.rag[voyageai]
``` ```
### OpenAI ### OpenAI
```bash ```bash
uv pip install haiku.rag --extra openai uv pip install haiku.rag[openai]
``` ```
### Anthropic ### Anthropic
```bash ```bash
uv pip install haiku.rag --extra anthropic uv pip install haiku.rag[anthropic]
``` ```
## Requirements ## Requirements

View file

@ -18,7 +18,7 @@ def get_embedder() -> EmbedderBase:
raise ImportError( raise ImportError(
"VoyageAI embedder requires the 'voyageai' package. " "VoyageAI embedder requires the 'voyageai' package. "
"Please install haiku.rag with the 'voyageai' extra:" "Please install haiku.rag with the 'voyageai' extra:"
"uv pip install haiku.rag --extra voyageai" "uv pip install haiku.rag[voyageai]"
) )
return VoyageAIEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM) return VoyageAIEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM)
@ -29,7 +29,7 @@ def get_embedder() -> EmbedderBase:
raise ImportError( raise ImportError(
"OpenAI embedder requires the 'openai' package. " "OpenAI embedder requires the 'openai' package. "
"Please install haiku.rag with the 'openai' extra:" "Please install haiku.rag with the 'openai' extra:"
"uv pip install haiku.rag --extra openai" "uv pip install haiku.rag[openai]"
) )
return OpenAIEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM) return OpenAIEmbedder(Config.EMBEDDINGS_MODEL, Config.EMBEDDINGS_VECTOR_DIM)

View file

@ -18,7 +18,7 @@ def get_qa_agent(client: HaikuRAG, model: str = "") -> QuestionAnswerAgentBase:
raise ImportError( raise ImportError(
"OpenAI QA agent requires the 'openai' package. " "OpenAI QA agent requires the 'openai' package. "
"Please install haiku.rag with the 'openai' extra:" "Please install haiku.rag with the 'openai' extra:"
"uv pip install haiku.rag --extra openai" "uv pip install haiku.rag[openai]"
) )
return QuestionAnswerOpenAIAgent(client, model or Config.QA_MODEL) return QuestionAnswerOpenAIAgent(client, model or Config.QA_MODEL)
@ -29,7 +29,7 @@ def get_qa_agent(client: HaikuRAG, model: str = "") -> QuestionAnswerAgentBase:
raise ImportError( raise ImportError(
"Anthropic QA agent requires the 'anthropic' package. " "Anthropic QA agent requires the 'anthropic' package. "
"Please install haiku.rag with the 'anthropic' extra:" "Please install haiku.rag with the 'anthropic' extra:"
"uv pip install haiku.rag --extra anthropic" "uv pip install haiku.rag[anthropic]"
) )
return QuestionAnswerAnthropicAgent(client, model or Config.QA_MODEL) return QuestionAnswerAnthropicAgent(client, model or Config.QA_MODEL)

View file

@ -29,7 +29,7 @@ def get_reranker() -> RerankerBase:
raise ImportError( raise ImportError(
"Cohere reranker requires the 'cohere' package. " "Cohere reranker requires the 'cohere' package. "
"Please install haiku.rag with the 'cohere' extra:" "Please install haiku.rag with the 'cohere' extra:"
"uv pip install haiku.rag --extra cohere" "uv pip install haiku.rag[cohere]"
) )
_reranker = CohereReranker() _reranker = CohereReranker()
return _reranker return _reranker