Breaking-Bad / README.md
sanketsans's picture
Update README.md
ba83567 verified

To use the vector store :

STEP: I - Download the entire repo (this includes the folder)

from huggingface_hub import snapshot_download
repo_id = "sanketsans/Breaking-Bad"
snapshot_download(repo_id=repo_id,local_dir=local_dir,repo_type="dataset")

STEP: II - Import FAISS and load the indexes

from langchain_community.vectorstores import FAISS

vector_store = FAISS.load_local(
    "faiss_index", embeds, allow_dangerous_deserialization=True
)

STEP: III - Use as retriver / similarity search**

retriever = vector_store.as_retriever()