Advanced semantic search server with multi-format document support and reranking capabilities.
- Multi-format document support:
- PDF files
- Word documents (DOCX)
- Text files
- Intelligent text chunking
- Advanced semantic search with reranking
- Batch directory indexing
- Support for GPU acceleration
uv pip install -e .
Add to your Claude Desktop configuration (claude_desktop_config.json
):
{
"mcpServers": {
"semantic-advanced": {
"command": "uv",
"args": [
"--directory",
"/opt/anaconda3/mcp-servers/semantic-advanced",
"run",
"python",
"-m",
"semantic_advanced.server"
]
}
}
}
Index all supported documents in a directory.
Parameters:
- directory (string, required): Directory path to index
- recursive (boolean, optional): Index subdirectories recursively (default: true)
Search documents with semantic search and reranking.
Parameters:
- query (string, required): Search query
- num_results (integer, optional): Number of results to return (default: 5)
- min_similarity (float, optional): Minimum similarity threshold (default: 0.5)
- Embeddings: BAAI/bge-base-en-v1.5
- Reranking: BAAI/bge-reranker-base
- Python >= 3.9
- Torch
- Transformers
- ChromaDB
- FlagEmbedding