Skip to main content
The openground query command performs hybrid search (semantic + BM25) against the local vector database.

Usage

Arguments

string
required
Query string for hybrid search

Options

string
default:"latest"
Version to filter results by.Aliases: -v
string
default:"None"
Optional library name filter. If provided, only searches within this library.Aliases: -l
integer
default:"5"
Number of results to return. Default value comes from configuration (query.top_k).Aliases: -kConstraints: Minimum value is 1

Search Algorithm

OpenGround uses hybrid search combining:
  1. Semantic Search: Vector similarity using embeddings
  2. BM25 (Keyword Search): Traditional full-text search
Results are ranked by combining both scores, providing relevant results even when exact keywords don’t match.

Examples

Basic Query

Query Specific Library

Query Specific Version

Get More Results

Combined Options

Output Format

Results are returned in markdown format with:
  • Title: Page title
  • URL: Source URL
  • Library & Version: Which library and version
  • Content: Relevant excerpt from the page

Output Example

Configuration

The default top_k value can be configured:

Performance Tips

  1. Be Specific: More specific queries return better results
  2. Use Library Filter: Filter by library when you know which docs to search
  3. Adjust top_k: Increase for broader searches, decrease for focused results