| title | Basic Usage Guide | |||||
|---|---|---|---|---|---|---|
| description | Essential commands, workflows, and daily usage patterns for Vector Bot | |||||
| audience | user | |||||
| level | beginner | |||||
| keywords |
|
|||||
| related_docs |
|
This guide covers the essential commands and workflows for daily use of Vector Bot. Once you've completed Getting Started, this guide will help you become productive with Vector Bot.
Vector Bot has three main commands:
| Command | Purpose | When to Use |
|---|---|---|
doctor |
System health check | Before starting work, troubleshooting |
ingest |
Index documents | When adding/updating documents |
query |
Ask questions | Regular querying of your documents |
Use doctor to check that everything is working properly.
vector-bot doctorExpected output:
✓ Ollama server is running at http://localhost:11434
✓ Chat model available: llama3.1
✓ Embedding model available: nomic-embed-text
✓ Configuration is valid
✓ Documents directory exists: ./docs (3 documents)
✓ Index directory exists: ./index_storage
vector-bot doctor --verboseShows additional details:
- Full configuration values
- Available models list
- Directory permissions
- Model loading tests
- Start of work session: Verify everything is working
- After system changes: New Ollama models, configuration changes
- Troubleshooting: First step when something isn't working
- Before important work: Ensure reliability
Use ingest to process documents and build the searchable index.
vector-bot ingestWhat happens:
- Scans the documents directory (
./docsby default) - Processes supported file types (PDF, text, markdown, JSON, CSV)
- Splits documents into searchable chunks
- Creates vector embeddings for each chunk
- Stores the index for fast retrieval
Expected output:
Loading documents from ./docs...
Found 12 documents to process
Processing documents...
├─ user-manual.pdf: 45 chunks
├─ api-docs.md: 23 chunks
├─ meeting-notes.txt: 8 chunks
└─ project-spec.pdf: 67 chunks
Building vector index...
✓ Index saved to ./index_storage
✓ Indexed 143 chunks from 12 documents
vector-bot ingest --verboseShows additional details:
- File-by-file processing progress
- Chunk creation details
- Embedding generation progress
- Performance metrics
- Initial setup: Index your document collection
- Adding documents: After copying new files to
docs/ - Updating documents: After modifying existing documents
- Index corruption: Rebuild if queries aren't working properly
✅ Safe to re-run: Running ingest multiple times won't duplicate data
📁 File limits: Files over 20MB are automatically skipped
🔄 Incremental: Only processes new or changed documents
💾 Persistent: Index is saved to disk for fast startup
Use query to ask questions about your indexed documents.
vector-bot query "What is the main topic of these documents?"Factual questions:
vector-bot query "What is the API rate limit?"
vector-bot query "Who are the project stakeholders?"
vector-bot query "When was the last meeting held?"Analytical questions:
vector-bot query "What are the key risks mentioned?"
vector-bot query "Compare the different approaches discussed"
vector-bot query "What are the main recommendations?"Summary questions:
vector-bot query "Summarize the project requirements"
vector-bot query "What are the next steps outlined?"
vector-bot query "List all the technical specifications"# Default: 4 chunks of context
vector-bot query "explain the architecture"
# More context for complex questions
vector-bot query "explain the architecture" --k 8
# Maximum context for comprehensive analysis
vector-bot query "explain the architecture" --k 12# Show which documents were used
vector-bot query "what are the requirements?" --show-sourcesOutput includes:
- The answer based on your documents
- List of source documents used
- Relevance scores for each source
# See detailed processing steps
vector-bot query "what is the timeline?" --verboseShows:
- Query processing steps
- Document retrieval details
- AI model response generation
# 1. Check system health
vector-bot doctor
# 2. Add any new documents from yesterday
cp ~/Downloads/new-report.pdf docs/
# 3. Update index
vector-bot ingest
# 4. Quick test query
vector-bot query "What's new in the latest report?"# Add documents
cp ~/Research/*.pdf docs/
# Index them
vector-bot ingest
# Initial exploration
vector-bot query "What are the main themes across these documents?"
vector-bot query "Are there any contradictory findings?" --k 8
vector-bot query "What methodologies are used?" --show-sources# Add meeting prep materials
cp ~/Meeting-Prep/* docs/
# Index
vector-bot ingest
# Preparation queries
vector-bot query "What are the key discussion points?"
vector-bot query "What decisions need to be made?"
vector-bot query "Who needs to be informed about what?" --k 6# Comprehensive analysis
vector-bot query "What are the key findings?" --k 8
vector-bot query "What evidence supports the main conclusion?" --show-sources
vector-bot query "What are the limitations mentioned?"
vector-bot query "How do these findings compare to previous work?"Best for: Research papers, reports, manuals, presentations
# PDFs work well for structured content
vector-bot query "What does the executive summary say?"
vector-bot query "Find the methodology section"Tips for PDFs:
- Ensure text is selectable (not scanned images)
- Break large PDFs (>20MB) into smaller sections
- Use descriptive filenames
Best for: Notes, documentation, structured text
# Markdown preserves structure well
vector-bot query "What are the installation steps?"
vector-bot query "Show me the code examples"Tips for Markdown:
- Use clear headings and structure
- Include code blocks for technical content
- Link related documents
Best for: Meeting notes, logs, unstructured content
# Plain text is processed efficiently
vector-bot query "What was discussed about the budget?"
vector-bot query "Are there any action items?"Tips for text files:
- Use consistent formatting
- Include dates and context
- Separate different topics clearly
Best for: Structured data, logs, API responses
# Query structured data
vector-bot query "What errors occurred most frequently?"
vector-bot query "What are the performance metrics?"Tips for structured data:
- Include field descriptions in your queries
- Reference specific data points
- Consider converting to markdown for complex analysis
📝 Be specific with your questions:
- Instead of: "Tell me about the project"
- Try: "What are the project deliverables and timeline?"
🎯 Use domain-specific terms:
- Use the same terminology as your documents
- Include relevant keywords from your field
📊 Adjust context based on question complexity:
- Simple facts: default (
--k 4) - Complex analysis: more context (
--k 8-12)
📁 Organize by topic or project:
docs/
├── project-alpha/
│ ├── requirements.pdf
│ └── design-docs.md
├── project-beta/
│ ├── research.pdf
│ └── notes.txt
└── reference/
└── standards.pdf📝 Use descriptive filenames:
- Good:
2024-Q1-performance-report.pdf - Poor:
report.pdf
🗂️ Keep documents current:
- Remove outdated versions
- Update index after changes
- Archive completed projects
🚀 Faster queries:
- Use fewer context chunks for simple questions
- Keep documents under 20MB
- Use SSD storage for index directory
💾 Efficient indexing:
- Process documents in batches
- Use markdown format when possible
- Remove unnecessary files before indexing
# Literature review
vector-bot query "What papers discuss neural networks in healthcare?" --k 8
vector-bot query "Compare the methodologies used" --show-sources
vector-bot query "What are the main research gaps identified?"# Market research
vector-bot query "What are the key market trends mentioned?"
vector-bot query "What competitive advantages are discussed?" --k 6
vector-bot query "What risks and opportunities are identified?"# API exploration
vector-bot query "How do I authenticate API requests?"
vector-bot query "What are the available endpoints?" --show-sources
vector-bot query "Show me examples of error responses"# Note exploration
vector-bot query "What did I learn about productivity this week?"
vector-bot query "Find my notes about the Johnson meeting"
vector-bot query "What ideas did I have for the new project?"- Regular maintenance: Remove outdated documents monthly
- Consistent naming: Use clear, descriptive filenames
- Logical organization: Group related documents in folders
- Size management: Keep individual files under 20MB
- Start broad, then narrow: General overview, then specific details
- Use progressive questions: Build on previous answers
- Validate with sources: Use
--show-sourcesfor important information - Iterate and refine: Adjust questions based on results
- Regular updates: Run
ingestafter adding documents - Health checks: Use
doctorbefore important work - Clean rebuilds: Occasionally delete and rebuild index
- Backup strategy: Keep document sources backed up
All commands support these global options:
# Use specific environment
vector-bot --env production query "test"
# Show configuration and exit
vector-bot --config-info
# Show version
vector-bot --version
# Show help
vector-bot --help# System health
vector-bot doctor [--verbose]
# Index documents
vector-bot ingest [--verbose]
# Ask questions
vector-bot query "your question" [--k N] [--show-sources] [--verbose]
# Configuration
vector-bot --config-info [--env ENV]Now that you understand basic usage:
- Advanced Features - Power user capabilities
- Basic Configuration - Customize for your needs
- Examples - Real-world usage scenarios
- Troubleshooting - Solve common issues
Need quick answers? Check the FAQ