mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-06 21:43:44 +00:00
docs: templates
updated titles (#25646)
Updated titles into a consistent format. Fixed links to the diagrams. Fixed typos. Note: The Templates menu in the navbar is now sorted by the file names. I'll try sorting the navbar menus by the page titles, not the page file names.
This commit is contained in:
@@ -1,14 +1,16 @@
|
||||
# rag-self-query
|
||||
# RAG - Elasticsearch - Self-query
|
||||
|
||||
This template performs RAG using the self-query retrieval technique. The main idea is to let an LLM convert unstructured queries into structured queries. See the [docs for more on how this works](https://python.langchain.com/docs/modules/data_connection/retrievers/self_query).
|
||||
This template performs RAG using the `self-query` retrieval technique.
|
||||
The main idea is to let an LLM convert unstructured queries into
|
||||
structured queries. See the [docs for more on how this works](https://python.langchain.com/docs/modules/data_connection/retrievers/self_query).
|
||||
|
||||
## Environment Setup
|
||||
|
||||
In this template we'll use OpenAI models and an Elasticsearch vector store, but the approach generalizes to all LLMs/ChatModels and [a number of vector stores](https://python.langchain.com/docs/integrations/retrievers/self_query/).
|
||||
In this template we'll use `OpenAI` models and an `Elasticsearch` vector store, but the approach generalizes to all LLMs/ChatModels and [a number of vector stores](https://python.langchain.com/docs/integrations/retrievers/self_query/).
|
||||
|
||||
Set the `OPENAI_API_KEY` environment variable to access the OpenAI models.
|
||||
Set the `OPENAI_API_KEY` environment variable to access the `OpenAI` models.
|
||||
|
||||
To connect to your Elasticsearch instance, use the following environment variables:
|
||||
To connect to your `Elasticsearch` instance, use the following environment variables:
|
||||
|
||||
```bash
|
||||
export ELASTIC_CLOUD_ID = <ClOUD_ID>
|
||||
|
Reference in New Issue
Block a user