ThoughtDB is a mix between relational and vector database for efficient data retrieval
Project description
ThoughtDB
ThoughtDB is a mix between relational and vector database for efficient data retrieval
Installation
Windows
python -m venv .venv
.\.venv\Scripts\activate
pip install poetry
MacOS / Linux
python3 -m venv .venv
source ./.venv/bin/activate
pip install poetry
poetry run python app.py 0.0.0.0:8003
Text Embedding Models
Download the following model or model of your choice in GGUF format into the models_db folder
https://huggingface.co/nomic-ai/nomic-embed-text-v1.5-GGUF/resolve/main/nomic-embed-text-v1.5.Q4_K_M.gguf?download=true
Data Structure
The following is the layout for the ThoughtDB data structure. As we are in Alpha phase this structure may change as we optimize things.
- Organizations
- Collections
- Conversations
- Sessions
- History
- Summaries
- Document Types
- Documents
- Chapters
- Paragraphs
- Sentences
- Words
- Documents
- Conversations
- Collections
Overview
Installing
Installation should be simple
Pip
pip install thoughtdb
Poetry
poetry add thoughtdb
Creating a new database
Currently, we only support Sqlite3, all the dependencies should be installed by pip or poetry.
from thoughtdb.app import VectorStore
Building
python3 -m pip install --upgrade build
python3 -m build
python3 -m pip install --upgrade twine
python3 -m twine upload --repository pipy dist/*
Testing
pytest tests --verbose
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
thoughtdb-0.1.2.tar.gz
(82.4 MB
view hashes)
Built Distribution
thoughtdb-0.1.2-py3-none-any.whl
(82.4 MB
view hashes)
Close
Hashes for thoughtdb-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7b85ef6c8ca8b9e04869ff30b144d1ccadb0c01965835222c7503178ccd72545 |
|
MD5 | 9fea0f7dd20c9c4dadab17ff62bd8e0e |
|
BLAKE2b-256 | c3e3caddc8abaf57bc9713f8aa22e086002079646dc99603978af946eb758a58 |