Pijush2023 commited on
Commit
ccf185f
1 Parent(s): 512594e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -133,11 +133,12 @@ gpt_vectorstore = PineconeVectorStore(index_name="italyv109102024", embedding=gp
133
  gpt_retriever = gpt_vectorstore.as_retriever(search_kwargs={'k': 5})
134
 
135
 
136
-
137
 
138
 
139
  # New vector store setup for Phi-3.5
140
- phi_embeddings = OpenAIEmbeddings(api_key=os.environ['OPENAI_API_KEY'])
 
141
  phi_vectorstore = PineconeVectorStore(index_name="italyv109102024", embedding=phi_embeddings)
142
  phi_retriever = phi_vectorstore.as_retriever(search_kwargs={'k': 5})
143
 
 
133
  gpt_retriever = gpt_vectorstore.as_retriever(search_kwargs={'k': 5})
134
 
135
 
136
+ from langchain_community.embeddings import FakeEmbeddings
137
 
138
 
139
  # New vector store setup for Phi-3.5
140
+ # phi_embeddings = OpenAIEmbeddings(api_key=os.environ['OPENAI_API_KEY'])
141
+ phi_embeddings = FakeEmbeddings(size=1024)
142
  phi_vectorstore = PineconeVectorStore(index_name="italyv109102024", embedding=phi_embeddings)
143
  phi_retriever = phi_vectorstore.as_retriever(search_kwargs={'k': 5})
144