Chat API
The Chat API combines Ground’s search with GPT-4 to provide AI-powered answers backed by real documentation. Every response includes citations to the original sources.Endpoint
Request
The question to ask the Ground Agent
Number of sources to use as context (1-10)
Maximum tokens for context window
Include pre-indexed global packages in search
Response
AI-generated answer based on Ground’s indexed documentation
List of sources used to generate the answer
Time taken to search Ground’s index
Time taken for AI to generate answer
Total response time
AI model used (e.g., “gpt-4o”)
Example
Response Example
Key Features
Citation-Backed
Every answer includes references to the actual documentation
175+ Packages
Pre-indexed npm and PyPI packages for instant results
Fast Search
84ms cached search with embedding cache
GPT-4 Powered
Answers generated by GPT-4o with Ground context