Skip to content

Commit

Permalink
docs: update tutorials (#7358)
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme authored Dec 16, 2024
1 parent ec9b6a5 commit 05cccee
Show file tree
Hide file tree
Showing 34 changed files with 7,302 additions and 5,990 deletions.
2 changes: 1 addition & 1 deletion docs/core_docs/docs/concepts/retrieval.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ const retriever = SelfQueryRetriever.fromLLM({

:::info[Further reading]

- See our tutorials on [text-to-SQL](/docs/tutorials/sql_qa/), [text-to-Cypher](/docs/tutorials/graph/), and [query analysis for metadata filters](/docs/tutorials/query_analysis/).
- See our tutorials on [text-to-SQL](/docs/tutorials/sql_qa/), [text-to-Cypher](/docs/tutorials/graph/), and [query analysis for metadata filters](/docs/tutorials/rag#query-analysis).
- See our [blog post overview](https://blog.langchain.dev/query-construction/).
- See our RAG from Scratch video on [query construction](https://youtu.be/kl6NwWYxvbM?feature=shared).

Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ For a high-level tutorial on building chatbots, check out [this guide](/docs/tut
### Query analysis

Query Analysis is the task of using an LLM to generate a query to send to a retriever.
For a high-level tutorial on query analysis, check out [this guide](/docs/tutorials/query_analysis/).
For a high-level tutorial on query analysis, check out [this guide](/docs/tutorials/rag#query-analysis).

- [How to: add examples to the prompt](/docs/how_to/query_few_shot)
- [How to: handle cases where no queries are generated](/docs/how_to/query_no_queries)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
Expand Down
4 changes: 2 additions & 2 deletions docs/core_docs/docs/how_to/query_few_shot.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
"As our query analysis becomes more complex, the LLM may struggle to understand how exactly it should respond in certain scenarios. In order to improve performance here, we can add examples to the prompt to guide the LLM.\n",
"\n",
"Let's take a look at how we can add examples for the LangChain YouTube video query analyzer we built in the [query analysis tutorial](/docs/tutorials/query_analysis)."
"Let's take a look at how we can add examples for the LangChain YouTube video query analyzer we built in the [query analysis tutorial](/docs/tutorials/rag#query-analysis)."
]
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/query_high_cardinality.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/query_multiple_queries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/query_multiple_retrievers.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
Expand Down
2 changes: 1 addition & 1 deletion docs/core_docs/docs/how_to/query_no_queries.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"\n",
"This guide assumes familiarity with the following:\n",
"\n",
"- [Query analysis](/docs/tutorials/query_analysis)\n",
"- [Query analysis](/docs/tutorials/rag#query-analysis)\n",
"\n",
":::\n",
"\n",
Expand Down
Loading

0 comments on commit 05cccee

Please sign in to comment.