Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions .github/workflows/test-langchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ on:
branches: ~
paths:
- '.github/workflows/test-langchain.yml'
- 'framework/langchain/**'
- 'topic/machine-learning/llm-langchain/**'
- 'requirements.txt'
push:
branches: [ main ]
paths:
- '.github/workflows/test-langchain.yml'
- 'framework/langchain/**'
- 'topic/machine-learning/llm-langchain/**'
- 'requirements.txt'

# Allow job to be triggered manually.
Expand Down Expand Up @@ -63,13 +63,13 @@ jobs:
cache: 'pip'
cache-dependency-path: |
requirements.txt
framework/langchain/requirements.txt
framework/langchain/requirements-dev.txt
topic/machine-learning/llm-langchain/requirements.txt
topic/machine-learning/llm-langchain/requirements-dev.txt

- name: Install utilities
run: |
pip install -r requirements.txt

- name: Validate framework/langchain
- name: Validate topic/machine-learning/llm-langchain
run: |
ngr test --accept-no-venv framework/langchain
ngr test --accept-no-venv topic/machine-learning/llm-langchain
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Examples::

More examples::

ngr test framework/langchain
ngr test topic/machine-learning/llm-langchain
ngr test testing/testcontainers/java

It is recommended to invoke ``ngr`` from within a Python virtualenv.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@ and [CrateDB].
- [requirements.txt](requirements.txt): Pulls in a patched version of LangChain,
as well as the CrateDB client driver and the `crash` command-line interface.

- `vector_store.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](vector_search.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/amo/framework-langchain?labpath=framework%2Flangchain%2Fvector_search.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/amo%2Fframework-langchain/framework/langchain/vector_search.ipynb)
- `vector_store.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](vector_search.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/main?labpath=topic%2Fmachine-learning%2Fllm-langchain%2Fvector_search.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/vector_search.ipynb)

This notebook explores CrateDB's [`FLOAT_VECTOR`] and [`KNN_MATCH`] functionalities for storing and retrieving
embeddings, and for conducting similarity searches.

- `document_loader.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](document_loader.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/amo/framework-langchain?labpath=framework%2Flangchain%2Fdocument_loader.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/amo%2Fframework-langchain/framework/langchain/document_loader.ipynb)
- `document_loader.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](document_loader.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/main?labpath=topic%2Fmachine-learning%2Fllm-langchain%2Fdocument_loader.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/document_loader.ipynb)

The notebook about the Document Loader demonstrates how to query a database table in CrateDB and use it as a
source provider for LangChain documents.

- `conversational_memory.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](conversational_memory.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/amo/framework-langchain?labpath=framework%2Flangchain%2Fconversational_memory.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/amo%2Fframework-langchain/framework/langchain/conversational_memory.ipynb)
- `conversational_memory.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](conversational_memory.ipynb) [![Launch Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/crate/cratedb-examples/main?labpath=topic%2Fmachine-learning%2Fllm-langchain%2Fconversational_memory.ipynb) [![Open in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/conversational_memory.ipynb)

LangChain also supports managing conversation history in SQL databases. This notebook exercises
how that works with CrateDB.
Expand Down
3 changes: 3 additions & 0 deletions topic/machine-learning/timeseries-basics/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/mlartifacts
/mlruns
/model