@o-lang/semantic-doc-search
v1.0.13
Published
O-lang Semantic Document Search Resolver with hybrid search, embeddings, rerank, and streaming.
Downloads
848
Readme
@olang/semantic-doc-search
O-lang Semantic Document Search Resolver with hybrid search, embeddings, rerank, and streaming.
Features
- Hybrid search (semantic embeddings + lexical scoring)
- Supports multiple file types:
.txt,.md,.pdf,.html,.docx - Streaming token-by-token output via SSE
- Reranking support (Cohere, Groq, local)
- Flexible vector adapters: in-memory, Redis, Pinecone
- Prebuilt prompt templates: summarize, short-answer, bullet-points, cite-sources
- CLI for quick testing
- Safe path resolution & chunking for long documents
- Persistent embeddings cache (
embeddings.json)
Installation
npm install @olang/semantic-doc-search