openground query command performs hybrid search (semantic + BM25) against the local vector database.
Usage
Arguments
Query string for hybrid search
Options
Version to filter results by.Aliases:
-vOptional library name filter. If provided, only searches within this library.Aliases:
-lNumber of results to return. Default value comes from configuration (
query.top_k).Aliases: -kConstraints: Minimum value is 1Search Algorithm
OpenGround uses hybrid search combining:- Semantic Search: Vector similarity using embeddings
- BM25 (Keyword Search): Traditional full-text search
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 defaulttop_k value can be configured:
Performance Tips
- Be Specific: More specific queries return better results
- Use Library Filter: Filter by library when you know which docs to search
- Adjust top_k: Increase for broader searches, decrease for focused results
Related Commands
- openground list - View available libraries
- openground add - Add documentation
- openground config - Configure query settings