anush008 opened a new pull request, #14202:
URL: https://github.com/apache/apisix/pull/14202

   ### Description
   
   This PR adds support for using Qdrant as a vector search provider in the 
`ai-rag` plugin.
   
   [Qdrant](https://qdrant.tech/) is an open-source vector search engine built 
for high-performance and massive scale.
   
   To use it, set `vector_search_provider.qdrant` on a route:
   
   ```json
   "vector_search_provider": {
     "qdrant": {
       "endpoint": "http://localhost:6333";,
       "api_key": "<your-api-key>",
       "collection_name": "docs"
     }
   }
   ```
   
   This PR also fixes request validation when routes use different vector 
search providers. Before, the request schema of the first provider was cached 
for every later route in the worker.
   
   #### Testing
   
   I've unit tested this integration in `t/plugin/ai-rag-qdrant.t`, and tested 
it end to end against a local Qdrant instance.
   
   #### Setup
   
   You can run Qdrant with
   
   ```bash
   docker run -p 6333:6333  qdrant/qdrant
   ```
   
   The dashboard is accessible at http://localhost:6333/dashboard.
   
   The plugin uses the REST API available at `host=localhost` and `port=6333` 
([Ref](https://qdrant.tech/documentation/interfaces/)).
   
   ### Checklist
   
   - [x] I have explained the need for this PR and the problem it solves
   - [x] I have explained the changes or the new features added to this PR
   - [x] I have added tests corresponding to this change
   - [x] I have updated the documentation to reflect this change
   - [x] I have verified that this change is backward compatible


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to