Executing Your First Search
Now that you've created an index, let's explore how to search your documents effectively with Oboyu.
Basic Searchโ
The simplest search is just a few keywords:
oboyu search "project deadline"
Oboyu will return the most relevant documents containing information about project deadlines.
Understanding Search Resultsโ
A typical search result looks like this:
Searching for: "project deadline"
1. project-plan-2024.md (Score: 0.92)
Path: ~/Documents/projects/project-plan-2024.md
Modified: 2024-01-15
...The project deadline has been set for March 15th, with key milestones
scheduled for February 1st and February 20th. All team members should...
2. github-issue-123.md (Score: 0.87)
Path: ~/Documents/github-issues/github-issue-123.md
Modified: 2024-01-10
...discussed the upcoming project deadline and resource allocation.
The team agreed that the March deadline is achievable if we...
Found 15 results in 0.23 seconds
Search Modesโ
Oboyu offers three search modes to match your needs:
1. Hybrid Search (Default)โ
Combines keyword and semantic search for best results:
oboyu search "quarterly revenue analysis"
2. Vector Searchโ
Understands meaning and context using semantic embeddings:
oboyu search "documents about financial planning" --mode vector
3. BM25 Searchโ
Fast, traditional keyword matching:
oboyu search "budget report 2024" --mode bm25
Refining Your Searchโ
Limit Number of Resultsโ
oboyu search "meeting notes" --top-k 5
Enable Rerankingโ
Improve search quality with neural reranking:
oboyu search "architecture design" --rerank
Get Detailed Explanationsโ
See why documents matched your query:
oboyu search "configuration" --explain
Output as JSONโ
Get structured results for automation:
oboyu search "status update" --format json
Search Examples by Use Caseโ
Finding Meeting Notesโ
# Meeting about specific topic
oboyu search "budget discussion"
# All meetings with specific person using semantic search
oboyu search "meeting with Sarah" --mode vector
Searching Technical Documentationโ
# Find API documentation
oboyu search "REST API authentication"
# Find configuration examples with reranking
oboyu search "database connection config" --rerank
Research and Academic Papersโ
# Find papers on specific topic with limited results
oboyu search "machine learning optimization" --top-k 10
# Find recent research using hybrid search
oboyu search "neural networks 2024" --mode hybrid
Advanced Search Techniquesโ
Phrase Searchโ
Use quotes for exact phrases:
oboyu search '"project deadline march 15"'
Combining Termsโ
Use natural language:
oboyu search "emails about contract renewal from legal department"
Interactive Search Modeโ
For exploratory searching, use interactive mode:
oboyu search --interactive
This opens a search session where you can:
- Execute multiple searches in sequence
- Navigate through results easily
- Refine queries based on results
Example session:
Oboyu Interactive Search
Type 'help' for commands, 'quit' to exit
> project roadmap
Found 23 results
[Results displayed...]
> Q2 milestones
Found 8 results
[Results displayed...]
> quit
Japanese Language Searchโ
Oboyu excels at Japanese text search:
# Search in Japanese
oboyu search "ไผ่ญฐ่ญฐไบ้ฒ"
# Mixed language search
oboyu search "ใใญใธใงใฏใ deadline"
# Vector search understands context
oboyu search "ๆฅ้ฑใฎไบๅฎใซใคใใฆ" --mode vector
Search Performance Tipsโ
1. Use Specific Keywordsโ
Instead of: "document"
Try: "Q4 financial report"
2. Leverage Vector Searchโ
For conceptual searches:
oboyu search "documents explaining our pricing strategy" --mode vector
3. Use Available Optionsโ
Improve your search with available options:
oboyu search "api documentation" --rerank --top-k 10
Understanding Relevance Scoresโ
Oboyu assigns relevance scores (0.0 to 1.0):
- 0.90-1.00: Excellent match
- 0.70-0.89: Good match
- 0.50-0.69: Fair match
- Below 0.50: Weak match
Advanced Optionsโ
Custom Database Pathโ
Search a specific database:
oboyu search "documents" --db-path /path/to/custom.db
Fine-tune Hybrid Searchโ
Adjust the RRF (Reciprocal Rank Fusion) parameter:
oboyu search "documents" --rrf-k 30
Troubleshooting Search Issuesโ
No Results Foundโ
- Check spelling and try variations
- Use semantic mode for conceptual searches
- Verify the index is up-to-date
Too Many Resultsโ
- Add more specific keywords
- Use filters (date, file type)
- Try phrase search with quotes
Irrelevant Resultsโ
- Switch search modes
- Use more descriptive terms
- Filter by recently modified files
Search Best Practicesโ
-
Start Broad, Then Narrow
oboyu search "project" # Too broad
oboyu search "project alpha milestone 2" # Better -
Use Natural Language
oboyu search "emails about the new product launch"
-
Combine Search Modes Start with hybrid mode, then refine with specific modes
-
Regular Index Updates Keep your search results current:
oboyu manage diff && oboyu search "latest reports"
Next Stepsโ
Now that you can search effectively:
- Explore Basic Workflows for daily usage patterns
- Learn about Search Patterns for advanced techniques
- Configure Search Optimization for better results