Spaces:
Sleeping
Sleeping
Update chain.py
Browse files
chain.py
CHANGED
@@ -4,8 +4,15 @@ import logging
|
|
4 |
|
5 |
import wandb
|
6 |
from langchain.chains import ConversationalRetrievalChain
|
7 |
-
from langchain.chat_models import ChatOpenAI
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
## deprectated from langchain.vectorstores import Chroma
|
10 |
from langchain_community.vectorstores import Chroma
|
11 |
from prompts import load_chat_prompt
|
|
|
4 |
|
5 |
import wandb
|
6 |
from langchain.chains import ConversationalRetrievalChain
|
7 |
+
##from langchain.chat_models import ChatOpenAI
|
8 |
+
|
9 |
+
from langchain_community.chat_models import ChatOpenAI
|
10 |
+
|
11 |
+
##from langchain.embeddings import OpenAIEmbeddings
|
12 |
+
|
13 |
+
from langchain_community.embeddings import OpenAIEmbeddings
|
14 |
+
|
15 |
+
|
16 |
## deprectated from langchain.vectorstores import Chroma
|
17 |
from langchain_community.vectorstores import Chroma
|
18 |
from prompts import load_chat_prompt
|