Quick Start
Index your files
Build the search index from your watched directories:This will:
- Scan all watched directories for supported file types
- Chunk documents into searchable segments
- Generate and store embeddings locally in
./know_index
Indexing creates a
know_index directory in your current working directory. Subsequent index runs only process new or changed files.Common Workflows
Search with filters
Limit results to specific file types or recently modified files:Incremental indexing
Index only files modified in the last week:Try different search modes
know supports multiple search strategies:- Dense (Default)
- BM25 Lexical
- Hybrid
Semantic vector search using embeddings:Best for: Conceptual queries, finding similar topics
Preview changes without indexing
Use dry run mode to see what would be indexed:- How many new documents would be added
- How many unchanged documents would be skipped
- No actual changes to the index
Understanding Results
Distance scores
For dense (vector) search, lower scores indicate better matches:- 0.0 - 0.3: Highly relevant
- 0.3 - 0.5: Moderately relevant
- 0.5+: Less relevant
Scores are cosine distances. A score of 0 means identical vectors, while higher values indicate greater dissimilarity.
Result limit
By default, know returns 5 results. Adjust with--limit:
Managing Your Index
View watched directories
See all directories currently being tracked:Remove old files from index
Clean up chunks from deleted files:Start fresh
Clear the entire index and start over:Next Steps
Commands Reference
Explore all available commands and options
Search Modes
Learn about dense, BM25, and hybrid search
Filtering Results
Master glob patterns and time-based filters
Output Formats
Export results as JSON or plain text