Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Google Colab link and runtime error #310

Merged
merged 3 commits into from
Feb 19, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
2 changes: 1 addition & 1 deletion topic/machine-learning/llm-langchain/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ and [CrateDB].
[document_loader.py](document_loader.py), and
[conversational_memory.py](conversational_memory.py).

- `cratedb_rag_customer_support_langchain.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](cratedb_rag_customer_support_langchain.ipynb)[![Open in Colab](https://colab.research.google.com/github/crate/cratedb-examples/blob/main/topic/machine-learning/llm-langchain/cratedb_rag_customer_support_langchain.ipynb)
- `cratedb_rag_customer_support_langchain.ipynb` [![Open on GitHub](https://img.shields.io/badge/Open%20on-GitHub-lightgray?logo=GitHub)](cratedb_rag_customer_support_langchain.ipynb)[![Open in Colab](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/cratedb_rag_customer_support_langchain.ipynb)

This example illustrates the RAG implementation of a customer support scenario.
The dataset used in this example is based on a collection of customer support interactions
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,10 @@
},
"outputs": [],
"source": [
"!pip install -r requirements.txt"
"#!pip install -r requirements.txt\n",
"\n",
"#Note: If you are running in an environment like Google Colab, please use the absolute path of the requirements:\n",
marijaselakovic marked this conversation as resolved.
Show resolved Hide resolved
"#!pip install -r https://raw.githubusercontent.com/crate/cratedb-examples/main/topic/machine-learning/llm-langchain/requirements.txt\""
]
},
{
Expand Down Expand Up @@ -155,7 +158,7 @@
},
"outputs": [],
"source": [
"embeddings = OpenAIEmbeddings(deployment='my-embedding-model', chunk_size=1)\n",
"embeddings = OpenAIEmbeddings(deployment='my-embedding-model', chunk_size=200)\n",
"pages_embeddings = embeddings.embed_documents(pages_text)"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,10 @@
},
"outputs": [],
"source": [
"!pip install -r requirements.txt"
"#!pip install -r requirements.txt\n",
"\n",
"#Note: If you are running in an environment like Google Colab, please use the absolute path of the requirements:\n",
marijaselakovic marked this conversation as resolved.
Show resolved Hide resolved
"#!pip install -r https://raw.githubusercontent.com/crate/cratedb-examples/main/topic/machine-learning/llm-langchain/requirements.txt\""
]
},
{
Expand Down