Spaces:
Running
Running
Rohan Kataria
commited on
Commit
·
c2d4d42
1
Parent(s):
ae21767
final change
Browse files- app.py +1 -1
- src/main.py → main.py +1 -4
- requirements.txt +0 -1
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
import streamlit as st
|
2 |
-
from
|
3 |
import os
|
4 |
|
5 |
# Constants
|
|
|
1 |
import streamlit as st
|
2 |
+
from main import ConversationalResponse
|
3 |
import os
|
4 |
|
5 |
# Constants
|
src/main.py → main.py
RENAMED
@@ -1,18 +1,15 @@
|
|
1 |
import os
|
2 |
-
import openai
|
3 |
import sys
|
4 |
import docarray
|
5 |
sys.path.append('../..')
|
6 |
-
from langchain.embeddings.openai import OpenAIEmbeddings
|
7 |
from langchain.text_splitter import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
8 |
from langchain.vectorstores import DocArrayInMemorySearch
|
9 |
from langchain.document_loaders import TextLoader
|
10 |
from langchain.chains import RetrievalQA, ConversationalRetrievalChain
|
11 |
from langchain.memory import ConversationBufferMemory
|
12 |
-
from langchain.chat_models import
|
13 |
from langchain.document_loaders import TextLoader
|
14 |
from langchain.document_loaders import GitLoader
|
15 |
-
from langchain.llms import OpenAI
|
16 |
from langchain.memory import ConversationBufferMemory, ConversationBufferWindowMemory
|
17 |
from langchain.vectorstores import Chroma
|
18 |
from langchain.embeddings import OllamaEmbeddings
|
|
|
1 |
import os
|
|
|
2 |
import sys
|
3 |
import docarray
|
4 |
sys.path.append('../..')
|
|
|
5 |
from langchain.text_splitter import CharacterTextSplitter, RecursiveCharacterTextSplitter
|
6 |
from langchain.vectorstores import DocArrayInMemorySearch
|
7 |
from langchain.document_loaders import TextLoader
|
8 |
from langchain.chains import RetrievalQA, ConversationalRetrievalChain
|
9 |
from langchain.memory import ConversationBufferMemory
|
10 |
+
from langchain.chat_models import ChatOllama
|
11 |
from langchain.document_loaders import TextLoader
|
12 |
from langchain.document_loaders import GitLoader
|
|
|
13 |
from langchain.memory import ConversationBufferMemory, ConversationBufferWindowMemory
|
14 |
from langchain.vectorstores import Chroma
|
15 |
from langchain.embeddings import OllamaEmbeddings
|
requirements.txt
CHANGED
@@ -1,4 +1,3 @@
|
|
1 |
-
openai
|
2 |
streamlit
|
3 |
langchain==0.0.305
|
4 |
langchain[docarray]
|
|
|
|
|
1 |
streamlit
|
2 |
langchain==0.0.305
|
3 |
langchain[docarray]
|