AI Integrations
Search Content (AI)
Search sailing articles, guides, and FAQ answers from the knowledge base
GET
/ai/contentSemantic (vector) search across the charter.boats knowledge base. Covers topics like sailing licenses, chartering costs, packing lists, weather, navigation, and destination guides. Returns the most relevant text from both long-form articles and FAQ-style Q&A entries, so AI clients can answer directly.
Authentication
No authentication required. Rate limited to 60 requests per 10 minutes.
Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (minimum 2 characters). Examples: "sailing license greece", "what to pack", "best time to charter croatia". |
type | string | No | Content type filter: article, question, or both (default: both) |
limit | integer | No | Max results per type (default: 5, max: 20) |
Request
Response
The articles key is present only when type is article or both; the questions key only when type is question or both. Each entry returns the single best-matching chunk of text as copy (up to 2000 characters) plus its url.
Response Fields
| Field | Type | Description |
|---|---|---|
articles | array | Matching long-form articles (present when type is article or both) |
articles[].url | string | Link to the article on charter.boats |
articles[].copy | string | Best-matching passage from the article (up to 2000 chars) |
questions | array | Matching FAQ entries (present when type is question or both) |
questions[].url | string | Link to the full answer on charter.boats |
questions[].copy | string | Best-matching passage from the answer (up to 2000 chars) |
Search Behavior
- Uses semantic vector search (embeddings) against indexed content chunks, then returns the best-scoring chunk per published article/answer.
- Results are ranked by relevance; only published content is returned.
- If the embedding/search backend is unavailable, the endpoint degrades gracefully and returns empty
articles/questionsarrays rather than an error.
Errors
| Status | Message |
|---|---|
400 | Search query must be at least 2 characters |