Skip to main content
For setup details of the SAP HANA vector store, see the guide at Vector Store: SAP HANA. We use the same setup here:
To be able to self query with good performance we create additional metadata fields for our vectorstore table in HANA:
Let’s add some documents.

Self querying

Now for the main act: here is how to construct a SelfQueryRetriever for HANA vectorstore:
Let’s use this retriever to prepare a (self) query for a person: