diff --git a/README.md b/README.md index bc3a9567..873364f4 100644 --- a/README.md +++ b/README.md @@ -8,6 +8,7 @@ Retrieval-Augmented Generation (RAG) library on SQLite. - **Local SQLite**: No external servers required - **Multiple embedding providers**: Ollama, VoyageAI, OpenAI +- **Multiple QA providers**: Ollama, OpenAI, Anthropic - **Hybrid search**: Vector + full-text search with Reciprocal Rank Fusion - **Question answering**: Built-in QA agents on your documents - **File monitoring**: Auto-index files when run as server diff --git a/docs/configuration.md b/docs/configuration.md index cae8a1dd..a9846508 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -84,6 +84,22 @@ QA_MODEL="gpt-4o-mini" # or gpt-4, gpt-3.5-turbo, etc. OPENAI_API_KEY="your-api-key" ``` +### Anthropic + +For Anthropic QA, you need to install haiku.rag with Anthropic extras: + +```bash +uv pip install haiku.rag --extra anthropic +``` + +Then configure: + +```bash +QA_PROVIDER="anthropic" +QA_MODEL="claude-3-5-haiku-20241022" # or claude-3-5-sonnet-20241022, etc. +ANTHROPIC_API_KEY="your-api-key" +``` + ## Other Settings ### Database and Storage diff --git a/docs/index.md b/docs/index.md index 66117c63..19da8d6d 100644 --- a/docs/index.md +++ b/docs/index.md @@ -8,7 +8,7 @@ - **Local SQLite**: No need to run additional servers - **Support for various embedding providers**: Ollama, VoyageAI, OpenAI or add your own - **Hybrid Search**: Vector search using `sqlite-vec` combined with full-text search `FTS5`, using Reciprocal Rank Fusion -- **Question Answering**: Built-in QA agents using Ollama or OpenAI. +- **Question Answering**: Built-in QA agents using Ollama, OpenAI, or Anthropic. - **File monitoring**: Automatically index files when run as a server - **Extended file format support**: Parse 40+ file formats including PDF, DOCX, HTML, Markdown, audio and more. Or add a URL! - **MCP server**: Exposes functionality as MCP tools diff --git a/docs/installation.md b/docs/installation.md index b3da3847..fd5eb509 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -24,6 +24,12 @@ uv pip install haiku.rag --extra voyageai uv pip install haiku.rag --extra openai ``` +### Anthropic + +```bash +uv pip install haiku.rag --extra anthropic +``` + ## Requirements - Python 3.10+