Skip to content

Commit b9137bc

Browse files
committed
Solr enrichment in library mode
- The solr enrichment script runs also when running lightspeed-stack in library mode - Hid is_chunk:true filtering attribute from the user
1 parent a491022 commit b9137bc

12 files changed

Lines changed: 2828 additions & 1168 deletions

docs/config.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ Only relevant when ``"okp"`` is listed in ``rag.inline`` or ``rag.tool``.
408408
| Field | Type | Description |
409409
|-------|------|-------------|
410410
| offline | boolean | When True, use parent_id for OKP chunk source URLs. When False, use reference_url for chunk source URLs. |
411-
| chunk_filter_query | string | OKP filter query applied to every OKP search request. Defaults to 'is_chunk:true' to restrict results to chunk documents. To add extra constraints, extend the expression using boolean syntax, e.g. 'is_chunk:true AND product:*openshift*'. |
411+
| chunk_filter_query | string | Additional OKP filter query applied to every OKP search request. Use Solr boolean syntax, e.g. 'product:\*ansible\* AND product:\*openshift\*'. |
412412
413413
414414
## PostgreSQLDatabaseConfiguration

docs/openapi.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4794,7 +4794,7 @@
47944794
],
47954795
"summary": "Handle A2A Jsonrpc",
47964796
"description": "Handle A2A JSON-RPC requests following the A2A protocol specification.\n\nThis endpoint uses the DefaultRequestHandler from the A2A SDK to handle\nall JSON-RPC requests including message/send, message/stream, etc.\n\nThe A2A SDK application is created per-request to include authentication\ncontext while still leveraging FastAPI's authorization middleware.\n\nAutomatically detects streaming requests (message/stream JSON-RPC method)\nand returns a StreamingResponse to enable real-time chunk delivery.\n\nArgs:\n request: FastAPI request object\n auth: Authentication tuple\n mcp_headers: MCP headers for context propagation\n\nReturns:\n JSON-RPC response or streaming response",
4797-
"operationId": "handle_a2a_jsonrpc_a2a_get",
4797+
"operationId": "handle_a2a_jsonrpc_a2a_post",
47984798
"responses": {
47994799
"200": {
48004800
"description": "Successful Response",
@@ -4812,7 +4812,7 @@
48124812
],
48134813
"summary": "Handle A2A Jsonrpc",
48144814
"description": "Handle A2A JSON-RPC requests following the A2A protocol specification.\n\nThis endpoint uses the DefaultRequestHandler from the A2A SDK to handle\nall JSON-RPC requests including message/send, message/stream, etc.\n\nThe A2A SDK application is created per-request to include authentication\ncontext while still leveraging FastAPI's authorization middleware.\n\nAutomatically detects streaming requests (message/stream JSON-RPC method)\nand returns a StreamingResponse to enable real-time chunk delivery.\n\nArgs:\n request: FastAPI request object\n auth: Authentication tuple\n mcp_headers: MCP headers for context propagation\n\nReturns:\n JSON-RPC response or streaming response",
4815-
"operationId": "handle_a2a_jsonrpc_a2a_get",
4815+
"operationId": "handle_a2a_jsonrpc_a2a_post",
48164816
"responses": {
48174817
"200": {
48184818
"description": "Successful Response",
@@ -8049,10 +8049,16 @@
80498049
"default": true
80508050
},
80518051
"chunk_filter_query": {
8052-
"type": "string",
8052+
"anyOf": [
8053+
{
8054+
"type": "string"
8055+
},
8056+
{
8057+
"type": "null"
8058+
}
8059+
],
80538060
"title": "OKP chunk filter query",
8054-
"description": "OKP filter query applied to every OKP search request. Defaults to 'is_chunk:true' to restrict results to chunk documents. To add extra constraints, extend the expression using boolean syntax, e.g. 'is_chunk:true AND product:*openshift*'.",
8055-
"default": "is_chunk:true"
8061+
"description": "Additional OKP filter query applied to every OKP search request. Use Solr boolean syntax, e.g. 'product:ansible AND product:*openshift*'."
80568062
}
80578063
},
80588064
"additionalProperties": false,

0 commit comments

Comments
 (0)