Vector DB Creation
The index-authoring pipeline builds a persistent ChromaDB database from structured tool metadata. JSON is the preferred source format.
The pipeline
tools.json
|
v
load structured metadata
|
v
chunk_tools()
|
v
embed_chunks_local()
|
v
store_in_chroma()
|
v
toon_chroma_db/
Main script
python vector_db_creation/embed_toon.py
This pipeline:
- loads structured tool metadata
- converts each tool into a chunked metadata document
- creates embeddings with
SentenceTransformer - writes them into a persistent ChromaDB collection named
tools
Storage output
The generated database is stored at:
toon_chroma_db/
Later, the retrieval pipeline opens it through:
PersistentClient(path=persist_directory)
Current reference implementation
The source project still includes embed_toon.py and related helpers. Those names reflect the current reference implementation, not the ideal public-facing format choice.
Why this is a core concept
ToolStorePy's build flow only makes sense because a semantic index already exists. The vector database is not an optional optimization layer. It is the retrieval substrate that allows plain-English tool requests to map to repositories.