Spaces:
Sleeping
Sleeping
dgutierrez
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -5,13 +5,16 @@ from operator import itemgetter
|
|
5 |
from langchain_huggingface import HuggingFaceEndpoint
|
6 |
from langchain_community.document_loaders import TextLoader
|
7 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
8 |
-
from langchain_community.vectorstores import FAISS
|
9 |
from langchain_huggingface import HuggingFaceEndpointEmbeddings
|
10 |
from langchain_core.prompts import PromptTemplate
|
11 |
from langchain.schema.output_parser import StrOutputParser
|
12 |
from langchain.schema.runnable import RunnablePassthrough
|
13 |
from langchain.schema.runnable.config import RunnableConfig
|
14 |
|
|
|
|
|
|
|
15 |
# GLOBAL SCOPE - ENTIRE APPLICATION HAS ACCESS TO VALUES SET IN THIS SCOPE #
|
16 |
# ---- ENV VARIABLES ---- #
|
17 |
"""
|
|
|
5 |
from langchain_huggingface import HuggingFaceEndpoint
|
6 |
from langchain_community.document_loaders import TextLoader
|
7 |
from langchain_text_splitters import RecursiveCharacterTextSplitter
|
8 |
+
#from langchain_community.vectorstores import FAISS
|
9 |
from langchain_huggingface import HuggingFaceEndpointEmbeddings
|
10 |
from langchain_core.prompts import PromptTemplate
|
11 |
from langchain.schema.output_parser import StrOutputParser
|
12 |
from langchain.schema.runnable import RunnablePassthrough
|
13 |
from langchain.schema.runnable.config import RunnableConfig
|
14 |
|
15 |
+
import faiss
|
16 |
+
from langchain_community.vectorstores.faiss import FAISS
|
17 |
+
|
18 |
# GLOBAL SCOPE - ENTIRE APPLICATION HAS ACCESS TO VALUES SET IN THIS SCOPE #
|
19 |
# ---- ENV VARIABLES ---- #
|
20 |
"""
|