Connected API
Guide to configuring external APIs for internet search capabilities
Sapientia can connect with external APIs to expand its capabilities. Currently supports Google Custom Search API to provide AI with access to information from the internet.
Google Custom Search API
Enables AI to search for current information from the internet to answer questions about topics not available in the local knowledge base.
How to Get API Key
To use this feature, you need:
1. Google Custom Search API Key
- Open Google Cloud Console
- Create a new project or select an existing one
- Enable "Custom Search API" in APIs & Services → Library
- Create API Key in Credentials → Create Credentials → API Key
- (Optional) Restrict API Key by selecting "Custom Search API" in API restrictions
Note: API Key is confidential, do not share it with others.
2. Programmable Search Engine ID
- Open Programmable Search Engine
- Click "Add" to create a new search engine
- Select "Search the entire web"
- Get the Search Engine ID from the "Overview" or "Setup" section
- Copy the ID (format:
0123456789abcdefg:hijklmnop)
How to Configure in Sapientia
- Open Settings → Connected API
- Enter Google Custom Search API Key
- Enter Programmable Search Engine ID
- Configuration is saved automatically (no need to click Apply)
Limit Source Citation
Controls the number of search results analyzed by AI (1-10 sources).
Recommendations:
- 3 sources: Simple questions, fast response
- 5 sources: Balanced for most cases (recommended)
- 8-10 sources: In-depth research, complex topics
Note: Google free quota = 100 queries/day. Each source = 1 API call.