-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LLM: Update to langchain-cratedb 0.0.0
After quite a bit of back and forth, and a slow genesis in general, this subsystem is finally approaching departures to take off. On the chrome/surface/interface, this update doesn't change much.
- Loading branch information
Showing
12 changed files
with
42 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -59,14 +59,14 @@ | |
"execution_count": 2, | ||
"outputs": [], | ||
"source": [ | ||
"from langchain_community.chat_message_histories import CrateDBChatMessageHistory\n", | ||
"from langchain_cratedb.chat_message_histories import CrateDBChatMessageHistory\n", | ||
"\n", | ||
"# Connect to a self-managed CrateDB instance.\n", | ||
"CONNECTION_STRING = \"crate://crate@localhost/?schema=notebook\"\n", | ||
"\n", | ||
"chat_message_history = CrateDBChatMessageHistory(\n", | ||
"\tsession_id=\"test_session\",\n", | ||
"\tconnection_string=CONNECTION_STRING\n", | ||
"\tconnection=CONNECTION_STRING\n", | ||
")\n", | ||
"\n", | ||
"# Make sure to start with a blank canvas.\n", | ||
|
@@ -216,7 +216,7 @@ | |
"\n", | ||
"\tchat_message_history = CrateDBChatMessageHistory(\n", | ||
"\t\tsession_id=\"test_session\",\n", | ||
"\t\tconnection_string=CONNECTION_STRING,\n", | ||
"\t\tconnection=CONNECTION_STRING,\n", | ||
"\t\tcustom_message_converter=CustomMessageConverter(\n", | ||
"\t\t\tauthor_email=\"[email protected]\"\n", | ||
"\t\t)\n", | ||
|
@@ -286,7 +286,7 @@ | |
"import json\n", | ||
"import typing as t\n", | ||
"\n", | ||
"from langchain_community.chat_message_histories.cratedb import CrateDBMessageConverter\n", | ||
"from langchain_cratedb.chat_message_histories import CrateDBMessageConverter\n", | ||
"from langchain.schema import _message_to_dict\n", | ||
"\n", | ||
"\n", | ||
|
@@ -314,7 +314,7 @@ | |
"\n", | ||
"\tchat_message_history = CrateDBChatMessageHistory(\n", | ||
"\t\tsession_id=\"test_session\",\n", | ||
"\t\tconnection_string=CONNECTION_STRING,\n", | ||
"\t\tconnection=CONNECTION_STRING,\n", | ||
"\t\tcustom_message_converter=CustomMessageConverterWithDifferentSessionIdColumn(),\n", | ||
"\t\tsession_id_field_name=\"custom_session_id\",\n", | ||
"\t)\n", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Real. | ||
# Production. | ||
cratedb-toolkit[io] | ||
pueblo[notebook,testing] | ||
|
||
# Development. | ||
# Staging. | ||
# cratedb-toolkit[io] @ git+https://github.com/crate-workbench/cratedb-toolkit.git@main | ||
# pueblo[notebook,testing] @ git+https://github.com/pyveci/pueblo.git@main | ||
|
||
# Workstation. | ||
# Development. | ||
#--editable=/Users/amo/dev/crate/ecosystem/cratedb-retentions[io] | ||
#--editable=/Users/amo/dev/pyveci/sources/pueblo[testing] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,12 @@ | ||
# Real. | ||
crash | ||
crate>=1.0.0.dev2 | ||
google-cloud-aiplatform<2 | ||
langchain-cratedb @ git+https://github.com/crate/langchain-cratedb.git@cratedb | ||
langchain-google-vertexai<3 | ||
langchain-openai<0.3 | ||
langchain-text-splitters<0.4 | ||
pueblo[cli,nlp]>=0.0.10 | ||
pydantic>=2,<3 | ||
pypdf<6 | ||
python-dotenv<2 | ||
requests<3 | ||
requests-cache<2 | ||
sqlalchemy==2.* | ||
sqlalchemy-cratedb>=0.40.0 | ||
unstructured<0.17 | ||
|
||
# Development. | ||
# cratedb-toolkit @ git+https://github.com/crate-workbench/cratedb-toolkit.git@main | ||
langchain @ git+https://github.com/crate-workbench/langchain.git@cratedb#subdirectory=libs/langchain | ||
langchain-community @ git+https://github.com/crate-workbench/langchain.git@cratedb#subdirectory=libs/community | ||
# pueblo[cli,fileio,nlp] @ git+https://github.com/pyveci/pueblo.git@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters