@@ -5,7 +5,7 @@ This folder contains notebooks that demonstrate various use cases for Elasticsea
5
5
The following notebooks are available:
6
6
7
7
- [ Question answering] ( #question-answering )
8
- <!-- - [Chatbot](#chatbot) -->
8
+ - [ Chatbot] ( #chatbot )
9
9
10
10
## Notebooks
11
11
@@ -15,12 +15,20 @@ In the [`question-answering.ipynb`](./question-answering.ipynb) notebook you'll
15
15
16
16
- Retrieve sample workplace documents from a given URL.
17
17
- 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 ` .
19
19
- Use ` OpenAIEmbeddings ` from ` langchain ` to create embeddings for the content.
20
20
- Retrieve embeddings for the chunked passages using OpenAI.
21
21
- Persist the passage documents along with their embeddings into Elasticsearch.
22
22
- Set up a question-answering system using ` OpenAI ` and ` ElasticKnnSearch ` from ` langchain ` to retrieve answers along with their source documents.
23
23
24
- <!-- ### Chatbot
24
+ ### Chatbot
25
25
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