ChromaDB Document Vectorizer
Paste the following prompt into your AI chat to install this skill:
Please follow https://skillhub.cn/install/skillhub.md to install @user_af28adda/chromadb-document-vectorizer.
About this skill
What problem it addresses
Local document retrieval often gets stuck on precision and persistence: keyword search misses paraphrases, pure vector search can miss exact terms, and in-memory vectors disappear after restart. This skill turns Word, Markdown, PDF, and TXT files into a searchable vector store for semantic lookup rather than conversational memory.
How it works
It follows a practical pipeline:
- Extraction and chunking: parses .docx, .md, .pdf, and .txt, then splits text using sentence boundaries such as Chinese periods. Default chunks are around 200 characters to preserve meaning.
- Embedding: uses a dependency-free MD5-hash simulation by default to generate 384-dimensional vectors; it can also switch to paraphrase-multilingual-MiniLM-L12-v2 for multilingual semantic representations.
- Search: search_vectors(query_text, top_k) retrieves results with cosine similarity and optional thresholds. v3 adds an LRU query cache and BM25 + vector hybrid retrieval, with an alpha parameter to balance keyword and semantic signals.
- Management: vectorize_file, get_collection_stats, and clear_collection let you add documents, inspect the collection, and reset it. Data is persisted under chroma_data and restored on startup.
Boundaries and notes
This is best for document knowledge retrieval, not for managing conversation state. Real semantic embeddings require sentence-transformers, and file formats need their corresponding parsers. For large files, batch ingestion is advisable; for large corpora, tune chunk_size to balance recall and precision.
Use Cases
- Maintain PDF and Markdown product manuals, then retrieve the most relevant passages for user questions with source documents.
- Batch ingest Word contracts and TXT meeting notes, then query clauses and decisions using natural language.
- Add semantic search to an internal tool, reducing missed paraphrases and controlling `top_k` result count.
- Inspect vector collection size and repeated queries, using stats and clear operations to manage local `chroma_data`.
Best For
- Knowledge-base retrieval engineers who need to convert PDF, Word, and Markdown into queryable vectors and reduce keyword bias.
- Product engineers building internal assistants who need document snippet search with `top_k` and similarity thresholds.
- Technical support maintainers of ops runbooks who want semantic recall over failure guides and historical cases.
- Data engineers prototyping retrieval who need to compare MD5 simulated vectors with `Sentence Transformers` embeddings.
Related Skills
Updates Next.js documentation based on code changes in the active branch to help maintainers review PR documentation completeness.
Use a book title and author to search reviews, contents, and reader feedback, then generate a structured breakdown of historical or decision-logic books with key claims, concepts, quotes, and reading notes in Obsidian.
A multi-system divination advisor covering Bazi, Ziwei, tarot, feng shui, timing, and naming with structured interpretations.
Provides Bazi, Liu Yao, Qimen, Meihua, and date-selection guidance from classical references, with plain-language explanations and actionable suggestions.