SAP-samples / cap-llm-plugin-samples

CAP LLM Plugin helps developers create tailored Generative AI based CAP applications without exposing confidential data to LLM by anonymizing sensitive data leveraging SAP HANA Cloud Data Anonymization.
Apache License 2.0
27 stars 11 forks source link

function getRagResponse, enhancement to be able to add document filter logic #5

Closed cocquerel closed 3 weeks ago

cocquerel commented 5 months ago

For the function getRagResponse, instead of providing a table name that contains vector embeddings, I would like to be able to provide a view name together with parameter value. The reason is because, in my use case, I would like to be able to implement a filter logic based on document metadata to restrict the documents I want to consider when searching for similar vector.

shumagundam commented 3 months ago

Is there any update on this question? I'm also having the same issue.

feng-lia commented 3 weeks ago

currently you have to filter the similarity search results in your own code. We will look into this capability once CQL supports related hana vector engine features.