Skip to main content

Executing Your First Search

Now that you've created an index, let's explore how to search your documents effectively with Oboyu.

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"

Understands meaning and context using semantic embeddings:

oboyu search "documents about financial planning" --mode vector

Fast, traditional keyword matching:

oboyu search "budget report 2024" --mode bm25

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โ€‹

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

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"

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

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โ€‹

  1. Start Broad, Then Narrow

    oboyu search "project"  # Too broad
    oboyu search "project alpha milestone 2" # Better
  2. Use Natural Language

    oboyu search "emails about the new product launch"
  3. Combine Search Modes Start with hybrid mode, then refine with specific modes

  4. Regular Index Updates Keep your search results current:

    oboyu manage diff && oboyu search "latest reports"

Next Stepsโ€‹

Now that you can search effectively: