bruno16 commited on
Commit
aae060c
1 Parent(s): 98a0d76

Update chain.py

Browse files
Files changed (1) hide show
  1. chain.py +9 -2
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
- from langchain.embeddings import OpenAIEmbeddings
 
 
 
 
 
 
 
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