Skip to main content
Archived

This project has been archived by its maintainers, and is no longer receiving any updates.

Insight Vault

Python 3.12 License: MIT PyPI - Version GitHub CI

Insight Vault is a local, privacy-focused library for building LLM-based applications. It allows you to store, search, and summarize text completely offline.

With Insight Vault, you can:

  • Search your local knowledge base.
  • Chat with your documents interactively.
  • Summarize large sets of information into concise outputs.

All data stays on your machine, with no external API calls required.

For more details see the documentation.

🚀 Features

  • Local Inference — Uses LLAMA for local LLM inference.
  • Local Embeddings — Embeddings are created using SentenceTransformers.
  • Privacy-first RAG — Store and query documents locally with ChromaDB.
  • Interactive CLI — Intuitive CLI interface for searching, managing, and summarizing.

📦 Dependencies

The following dependencies are required to run Insight Vault:

  • Ollama — For local LLM inference.
  • ChromaDB — Local document storage and vector database.
  • SentenceTransformers — Embeddings for better document search and query matching.

🔥 Installation

To install Insight Vault, you can use the following command:

pip install insightvault

⚙️ Usage

Insight Vault can be used via a simple CLI interface or as a Python library.

If you want to use the chat or summarize commands, you need to make sure that Ollama is running first.

CLI

Adding Documents

insightvault manage add-file <path_to_document>

This command will add a file from the specified path to the local document database. You can also directly add text. The manage command is also used to list all documents, and to delete all documents.

Searching Documents

insightvault search "Explain RAG pipelines"

This will search your indexed documents for the query “Explain RAG pipelines” and return the most relevant results.

Chat

insightvault chat "Explain RAG pipelines"

This uses RAG which means it takes in a natural language query and returns a response in natural language based on the most relevant documents you have indexed.

Summarizing Documents

insightvault summarize "Explain RAG pipelines"

Summarizes the text you provide. The flag --file can be used to summarize a file.

Library

Insightvault provides three apps as part of the library:

  • RAGApp — For RAG pipelines.
  • SearchApp — For searching indexed documents.
  • SummarizerApp — For summarizing text.

For example, to use the SummarizerApp, you can do the following:

from insightvault import SummarizerApp

app = SummarizerApp()
await app.summarize("This is a loooong test")

See the API Documentation for more information.

🛠️ Development

If you want to contribute to Insight Vault or run it locally for development, follow these steps.

  1. Clone the Repository
git clone https://github.com/daved01/insightvault.git
cd insightvault
  1. Install Development Dependencies
pip install -e ".[dev]"

This installs all required libraries for development, testing, and quality checks.

  1. Run Tests
pytest tests

This runs all the unit and integration tests to ensure everything is working properly.

  1. Run Quality Checks

We use ruff, mypy, and pre-commit hooks to ensure high code quality.

# Type checking with mypy
mypy insightvault

# Linting and formatting with ruff
ruff check . --fix
ruff format .

Pre-commit Hooks

To automatically check for secrets, format code, and run linters before every commit, set up pre-commit hooks as follows:

pre-commit install

This will install the hooks and run them automatically before each commit.


📤 Publishing

To publish a new version of Insight Vault to PyPI:

  1. Update the version in pyproject.toml.
  2. Build the package:
python -m build
  1. Publish the package:
twine upload dist/*

💡 Contributing

We welcome contributions of all kinds. Whether it’s bug fixes, new features, or improving the documentation. Please open an issue or submit a pull request.

Metadata

Release files for insightvault 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for insightvault 0.0.3
File Size Uploaded
insightvault-0.0.3.tar.gz 29.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for insightvault 0.0.3
File Interpreter ABI Platform
insightvault-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 47.3 kB

Release files / insightvault-0.0.3.tar.gz

Download URL insightvault-0.0.3.tar.gz
Size 29.3 kB
Tags Source
SHA-256 checksum
How to use checksums
10d50468f7d588695f2963b42677ead86c4eaeabf822697919654538a7acc142
BLAKE2b-256 checksum
How to use checksums
79ea750aa21e0bd90e1ada5a6860d8cc2175c4844db652bcaac9e37e21d34855
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release files / insightvault-0.0.3-py3-none-any.whl

Download URL insightvault-0.0.3-py3-none-any.whl
Size 18.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be80d1dc199fb00e4e8445e7a45ec644b6f7544c2a1effeb8f87467dad46fa64
BLAKE2b-256 checksum
How to use checksums
1cc17d88ada2620236d017fc1ccdb73d906709d0872a9b3d1a8c68bcc8b690cb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.8

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page