Local RAG framework for building intelligent knowledge bases
Project description
SolveDesk AI
Intelligent knowledge base powered by embeddings, vector search and Retrieval-Augmented Generation (RAG).
Overview
SolveDesk AI is a lightweight open-source framework for building local intelligent knowledge bases. The project provides a command-line interface for creating vector databases, importing documents, generating embeddings, performing semantic search, and integrating with local Large Language Models (LLMs).
Inspired by frameworks such as Laravel and Django, SolveDesk AI simplifies the process of building Retrieval-Augmented Generation (RAG) systems by providing ready-to-use commands and a modular architecture.
The framework can be used both as a production-ready knowledge base solution and as an educational platform for learning modern AI technologies, vector databases, embeddings, and semantic retrieval.
Features
- Local knowledge base creation
- Semantic document search
- Retrieval-Augmented Generation (RAG)
- Vector database management
- Embedding generation
- Local LLM integration through Ollama
- Data synchronization from APIs
- CSV, JSON and XLSX import support
- Embedding quality analysis
- Document chunking
- FastAPI integration
- Command-line interface
Architecture
Documents / API
│
▼
Embedding Model
│
▼
ChromaDB
│
▼
Semantic Search
│
▼
LLM
Ollama
│
▼
Generated Response
Technologies
| Technology | Purpose |
|---|---|
| Python 3.11 | Application runtime |
| FastAPI | REST API |
| ChromaDB | Vector database |
| silver-retriever-base-v1 | Embedding model |
| Sentence Transformers | Embedding generation |
| Ollama | Local LLM integration |
| Matplotlib | Data visualization |
| Typer | Command-line interface |
Installation
Clone repository:
git clone https://github.com/your-repository/solvedesk-ai.git
cd solvedesk-ai
Install dependencies:
pip install -r requirements.txt
Initialize project:
solvedesk conf init
Initialize vector database:
solvedesk db init
Configure local LLM:
solvedesk llm init
CLI Commands
Project Configuration
solvedesk conf init
Initialize project environment.
Database
solvedesk db init
Create vector database and download embedding model.
solvedesk db list
Display available collections.
solvedesk db details COLLECTION_NAME
Display collection details.
Data Synchronization
solvedesk sync api
Import documents from external API.
solvedesk sync file
Import documents from CSV, JSON or XLSX files.
Data Analysis
solvedesk data revision
Generate reports containing:
- cosine similarity statistics
- cluster distribution
- token statistics
- PCA visualization
Chunking
solvedesk data chunk
Split large documents into smaller chunks suitable for RAG systems.
LLM Configuration
solvedesk llm init
Configure Ollama host and model.
Run Application
solvedesk run:app
Start FastAPI server.
Supported Data Structures
FAQ
{
"question": "How to reset password?",
"answer": "Use reset password page."
}
Knowledge Base
{
"name": "VPN Connection",
"question": "Cannot connect to VPN",
"answer": "Verify credentials and VPN client configuration."
}
Example Workflow
solvedesk conf init
solvedesk db init
solvedesk sync file
solvedesk data revision
solvedesk llm init
solvedesk run:app
Project Goals
- Build local intelligent knowledge bases
- Simplify RAG implementation
- Support AI experimentation
- Provide full control over data
- Enable local LLM deployments
- Offer educational value for learning AI technologies
License
MIT License
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file solvedesk_ai-0.1.12.tar.gz.
File metadata
- Download URL: solvedesk_ai-0.1.12.tar.gz
- Upload date:
- Size: 26.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
92759611938054dfc9ccae88863e6c6f1ea19c0e7f26fdd650e6585cd74ff216
|
|
| MD5 |
63012a09f176fd62535b589ccbd8935b
|
|
| BLAKE2b-256 |
ca67f98ab7d3baf26ebc0512d121f39555baa45517afe41ad4a2db0317dbf3ce
|
File details
Details for the file solvedesk_ai-0.1.12-py3-none-any.whl.
File metadata
- Download URL: solvedesk_ai-0.1.12-py3-none-any.whl
- Upload date:
- Size: 41.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6b7daa491095dbc3f2d4c53d70bd60d4860b8e524a649074ca3f741ed189cfa
|
|
| MD5 |
6a65297e35248faa6248573e21fb5915
|
|
| BLAKE2b-256 |
a00b7c5d7ba47fdb55aa60df07007f23a24ef9eec34eacaee53b2da79000882f
|