sanketsans commited on
Commit
1ffbd53
·
verified ·
1 Parent(s): e854d93

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +23 -0
README.md CHANGED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ## To use the vector store :
2
+ # STEP: I - Download the entire repo (this includes the folder)
3
+
4
+ ```
5
+ repo_id = "sanketsans/Breaking-Bad"
6
+ hf_hub_download(repo_id=repo_id, repo_type="dataset", revision="main", local_dir=local_dir, allow_pickle=True)
7
+ ```
8
+
9
+
10
+ # STEP: II - Import FAISS and load the indexes
11
+
12
+ ```
13
+ from langchain_community.vectorstores import FAISS
14
+
15
+ vector_store = FAISS.load_local(
16
+ "faiss_index", embeds, allow_dangerous_deserialization=True
17
+ )
18
+ ```
19
+
20
+ # STEP: III - Use as retriver / similarity search**
21
+ ```
22
+ retriever = vector_store.as_retriever()
23
+ ```