You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This folder contains notebooks that demonstrate various use cases for Elasticsearch as the retrieval engine and vector store for LLM-powered applications.
4
+
5
+
The following notebooks are available:
6
+
7
+
-[Question answering](#question-answering)
8
+
<!-- - [Chatbot](#chatbot) -->
9
+
10
+
## Notebooks
11
+
12
+
### Question answering
13
+
14
+
In the [`question-answering.ipynb`](./question-answering.ipynb) notebook you'll learn how to:
15
+
16
+
- Retrieve sample workplace documents from a given URL.
17
+
- Set up an Elasticsearch client.
18
+
- Chunk documents into 800-token passages with an overlap of 400 tokens using the `CharacterTextSplitter` from `langchain`.
19
+
- Use `OpenAIEmbeddings` from `langchain` to create embeddings for the content.
20
+
- Retrieve embeddings for the chunked passages using OpenAI.
21
+
- Persist the passage documents along with their embeddings into Elasticsearch.
22
+
- Set up a question-answering system using `OpenAI` and `ElasticKnnSearch` from `langchain` to retrieve answers along with their source documents.
23
+
24
+
<!-- ### Chatbot
25
+
26
+
In the [`chatbot.ipynb`](./chatbot.ipynb) notebook you'll learn how to: -->
This folder contains notebooks that demonstrate how to use Elasticsearch with the LangChain framework for building applications powered by language models.
4
+
5
+
<!--
6
+
The following notebooks are available:
7
+
8
+
- [Embeddings](#embeddings)
9
+
- [Vector store](#vector-store)
10
+
11
+
## Notebooks
12
+
13
+
### Embeddings
14
+
15
+
In the [`langchain-elasticsearch-embeddings.ipynb`](./langchain-elasticsearch-embeddings.ipynb) notebook you'll learn how to:
16
+
17
+
-
18
+
-
19
+
20
+
### Vector store
21
+
22
+
In the [`langchain-vector-store.ipynb`](./langchain-vector-store.ipynb) notebook you'll learn how to:
0 commit comments