aws-samples / amazon-bedrock-workshop

This is a workshop designed for Amazon Bedrock a foundational model service.
https://catalog.us-east-1.prod.workshops.aws/workshops/a4bdb007-5600-4368-81c5-ff5b4154f518/en-US/20-intro
MIT No Attribution
1.34k stars 576 forks source link

Update search engine to FAISS for vector index in KnowledgeBase notebook #215

Closed eercanayar closed 4 months ago

eercanayar commented 4 months ago

Issue #, if available:

Description of changes:

This pull request updates the vector search engine configuration in 02_KnowledgeBases_and_RAG/0_create_ingest_documents_test_kb.ipynb Jupyter notebook example from NMSLIB to FAISS. This change is made to leverage FAISS's support for filtering with metadata. Otherwise, the knowledge base creation is failing with the following error:

The knowledge base storage configuration provided is invalid... The OpenSearch Serverless engine type associated with your vector index is invalid. Recreate your vector index with one of the following valid engine types: FAISS. Then retry your request.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.