|
|
3 mēneši atpakaļ | |
|---|---|---|
| example-docs | 3 mēneši atpakaļ | |
| src | 3 mēneši atpakaļ | |
| test-output | 3 mēneši atpakaļ | |
| .env.example | 3 mēneši atpakaļ | |
| .gitignore | 3 mēneši atpakaļ | |
| AGENTIC_CODER_CONFIG.md | 3 mēneši atpakaļ | |
| IMPLEMENTATION_COMPLETE.md | 3 mēneši atpakaļ | |
| MCP_CLIENTS.md | 3 mēneši atpakaļ | |
| README.md | 3 mēneši atpakaļ | |
| package-lock.json | 3 mēneši atpakaļ | |
| package.json | 3 mēneši atpakaļ | |
| parser-implementation-plan.md | 3 mēneši atpakaļ | |
| quick-start-implementation.md | 3 mēneši atpakaļ | |
| technical-specification.md | 3 mēneši atpakaļ | |
| tsconfig.json | 3 mēneši atpakaļ | |
| typescript-implementation.md | 3 mēneši atpakaļ |
A TypeScript-based project for storing markdown documents in Qdrant vector database with Ollama embeddings. Includes both CLI tools and MCP server integration.
npm install
Copy .env.example to .env and configure your settings:
# Qdrant URL Configuration
QDRANT_URL=http://localhost:6333
QDRANT_API_KEY=
# Ollama Configuration
OLLAMA_URL=http://localhost:11434
OLLAMA_EMBEDDING_MODEL=nomic-embed-text
npm run build
npm run dev add --name "my-docs" --folder "./docs" --recursive
npm run dev search --document "my-docs" --query "installation guide" --limit 5
npm run dev list
npm run dev info --document "my-docs"
Start the MCP server:
npm run mcp:cli
Or use the dedicated CLI:
docs-rag-mcp
For MCP clients, use this simple configuration:
{
"mcpServers": {
"docs-rag": {
"command": "npx",
"args": ["-y", "docs-rag-mcp"],
"cwd": "/path/to/docs-rag"
}
}
}
See MCP_CLIENTS.md for detailed configuration examples for:
add_document - Add a document collection from markdown files
name (string), folder (string), recursive (boolean, default: true)
search_documents - Search within a document collection
documentName (string), query (string), limit (number, default: 10)
list_collections - List all document collections
get_document_info - Get information about a document collection
documentName (string)src/
├── config/ # Configuration management
├── lib/ # Utility functions (file processing)
├── services/ # Core services (Ollama, Qdrant, Document)
├── cli/ # CLI tool implementation
└── mcp/ # MCP server implementation
@qdrant/qdrant-js - Qdrant client@modelcontextprotocol/sdk - MCP server frameworkcommander - CLI frameworkollama - Embedding generationdotenv - Environment configurationfs-extra - Enhanced file system operationscrypto - Hash generation