π Getting Startedο
π Overviewο
DocSense is a command-line tool that helps you create a searchable knowledge base from your documents and interact with them using natural language queries.
π― Quick Startο
Install DocSense π₯
pip install docsense
Index Your Documents π
# Index a directory of documents
docsense index ./docs
# Index with custom settings
docsense index ./docs --model-name "Qwen/Qwen2-7B" --device cpu
Ask Questions π¬
# Ask a simple question
docsense ask "What are the key points in the documentation?"
# Use different model or device
docsense ask "Explain the architecture" --device cpu --model-name "custom-model"
# Run in daemon mode for faster consecutive queries
docsense daemon
π§ Command Referenceο
Index Commandο
# Basic usage
docsense index <directory>
# Options
--model-name TEXT Model to use for embeddings
--device TEXT Computing device (cuda/cpu)
--index-path PATH Custom index location
--help Show this message and exit
Ask Commandο
# Basic usage
docsense ask <question>
# Options
--model-name TEXT Model to use for answering
--device TEXT Computing device (cuda/cpu)
--index-path PATH Custom index location
--help Show this message and exit
Daemon Commandο
# Basic usage
docsense daemon
# Options
--model-name TEXT Model to use
--device TEXT Computing device (cuda/cpu)
--index-path PATH Custom index location
--help Show this message and exit
π Example Use Casesο
Documentation Search π
# Index technical docs
docsense index ./technical-docs
# Search for specific information
docsense ask "How do I configure the logging system?"
Interactive Mode π
# Start daemon mode for faster responses
docsense daemon --device cpu
# Then ask questions interactively
> How do I get started?
> What are the main features?
> exit # to quit
π Next Stepsο
Check out the βοΈ Configuration Guide for advanced settings
See π‘ CLI Usage Examples for more use cases
Read the docsense for programmatic usage