Skip to content

Commit 2b8fd90

Browse files
authored
Merge pull request #38 from elastic/upd-notebooks-readme
Update notebooks readme
2 parents 9959ee4 + 544fa8b commit 2b8fd90

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

notebooks/generative-ai/README.md

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ This folder contains notebooks that demonstrate various use cases for Elasticsea
55
The following notebooks are available:
66

77
- [Question answering](#question-answering)
8-
<!-- - [Chatbot](#chatbot) -->
8+
- [Chatbot](#chatbot)
99

1010
## Notebooks
1111

@@ -15,12 +15,20 @@ In the [`question-answering.ipynb`](./question-answering.ipynb) notebook you'll
1515

1616
- Retrieve sample workplace documents from a given URL.
1717
- Set up an Elasticsearch client.
18-
- Chunk documents into 800-token passages with an overlap of 400 tokens using the `CharacterTextSplitter` from `langchain`.
18+
- Chunk documents into 800-character passages with an overlap of 400 characters using the `CharacterTextSplitter` from `langchain`.
1919
- Use `OpenAIEmbeddings` from `langchain` to create embeddings for the content.
2020
- Retrieve embeddings for the chunked passages using OpenAI.
2121
- Persist the passage documents along with their embeddings into Elasticsearch.
2222
- Set up a question-answering system using `OpenAI` and `ElasticKnnSearch` from `langchain` to retrieve answers along with their source documents.
2323

24-
<!-- ### Chatbot
24+
### Chatbot
2525

26-
In the [`chatbot.ipynb`](./chatbot.ipynb) notebook you'll learn how to: -->
26+
In the [`chatbot.ipynb`](./chatbot.ipynb) notebook you'll learn how to:
27+
28+
- Retrieve sample workplace documents from a given URL.
29+
- Set up an Elasticsearch client.
30+
- Chunk documents into 800-character passages with an overlap of 400 characters using the `CharacterTextSplitter` from `langchain`.
31+
- Use `OpenAIEmbeddings` from `langchain` to create embeddings for the content.
32+
- Retrieve embeddings for the chunked passages using OpenAI.
33+
- Run hybrid search in Elasticsearch to find documents that answers asked questions.
34+
- Maintain conversational memory for follow-up questions.

0 commit comments

Comments
 (0)