Spaces:
Sleeping
Sleeping
John Graham Reynolds
commited on
Commit
·
4dd1424
1
Parent(s):
4627350
make sure we are using the langchain_databricks implementation
Browse files
chain.py
CHANGED
|
@@ -4,8 +4,9 @@ import streamlit as st
|
|
| 4 |
from operator import itemgetter
|
| 5 |
from langchain_huggingface import HuggingFaceEmbeddings
|
| 6 |
from langchain_databricks.vectorstores import DatabricksVectorSearch
|
| 7 |
-
from langchain_community.chat_models import ChatDatabricks
|
| 8 |
-
from
|
|
|
|
| 9 |
from langchain_core.runnables import RunnableLambda
|
| 10 |
from langchain_core.output_parsers import StrOutputParser
|
| 11 |
from langchain_core.prompts import PromptTemplate, ChatPromptTemplate, MessagesPlaceholder
|
|
|
|
| 4 |
from operator import itemgetter
|
| 5 |
from langchain_huggingface import HuggingFaceEmbeddings
|
| 6 |
from langchain_databricks.vectorstores import DatabricksVectorSearch
|
| 7 |
+
# from langchain_community.chat_models import ChatDatabricks # lets be consistent with the packages were using
|
| 8 |
+
from langchain_databricks import ChatDatabricks
|
| 9 |
+
# from langchain_community.vectorstores import DatabricksVectorSearch # is this causing an issue?
|
| 10 |
from langchain_core.runnables import RunnableLambda
|
| 11 |
from langchain_core.output_parsers import StrOutputParser
|
| 12 |
from langchain_core.prompts import PromptTemplate, ChatPromptTemplate, MessagesPlaceholder
|