Prerequisites:
- Python
- InterSystems IRIS for Health - as it will be used as the vector database
Steps to follow:
- Clone the repo.
- Open VS Code, connect to desired instance and namespace of IRIS and compile the classes.
- Open IRIS Terminal and invoke the command
do ##class(vectors.vectorstore).InsertEmbeddings(), which reads the text from the filetext.txtand generate embeddings and store them in IRIS. - Invoke the command
do ##class(vectors.vectorstore).VectorSearch("search_terms")with desired words to perform similarity search. IRIS will return top three closest match:
This demo was put together in May 2024.