Spaces:
Running
Running
Update LegalBot2.py
Browse files- LegalBot2.py +2 -2
LegalBot2.py
CHANGED
@@ -5,7 +5,7 @@ import streamlit as st
|
|
5 |
# from langchain.chat_models import ChatOpenAI
|
6 |
from langchain.chains import RetrievalQA
|
7 |
# from langchain import PromptTemplate
|
8 |
-
|
9 |
# from langchain.agents import initialize_agent, Tool, AgentExecutor
|
10 |
# from langchain.text_splitter import CharacterTextSplitter
|
11 |
import openai
|
@@ -15,7 +15,7 @@ from langchain_openai import OpenAIEmbeddings, ChatOpenAI
|
|
15 |
from langchain_community.vectorstores import Chroma
|
16 |
from langchain_core.prompts import PromptTemplate
|
17 |
# from langchain_community.chains import RetrievalQA
|
18 |
-
from langchain_community.memory import ConversationBufferMemory
|
19 |
from langchain_community.agents import initialize_agent, Tool, AgentExecutor
|
20 |
from langchain_core.text_splitters import CharacterTextSplitter
|
21 |
|
|
|
5 |
# from langchain.chat_models import ChatOpenAI
|
6 |
from langchain.chains import RetrievalQA
|
7 |
# from langchain import PromptTemplate
|
8 |
+
from langchain.memory import ConversationBufferMemory
|
9 |
# from langchain.agents import initialize_agent, Tool, AgentExecutor
|
10 |
# from langchain.text_splitter import CharacterTextSplitter
|
11 |
import openai
|
|
|
15 |
from langchain_community.vectorstores import Chroma
|
16 |
from langchain_core.prompts import PromptTemplate
|
17 |
# from langchain_community.chains import RetrievalQA
|
18 |
+
# from langchain_community.memory import ConversationBufferMemory
|
19 |
from langchain_community.agents import initialize_agent, Tool, AgentExecutor
|
20 |
from langchain_core.text_splitters import CharacterTextSplitter
|
21 |
|