Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan committed Feb 22, 2024
1 parent 2c6ffb2 commit 2be47ec
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions docs/docs/use_cases/question_answering/query_analysis.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1522,18 +1522,14 @@
"source": [
"question = \"What are the most popular videos about RAG?\"\n",
"queries = [\n",
" LangChainYouTubeSearch(title_search=\"RAG\", sort_by=\"view_count\", relevance_rank=1),\n",
" LangChainYouTubeSearch(\n",
" content_search=\"RAG\", sort_by=\"view_count\", relevance_rank=2\n",
" ),\n",
" LangChainYouTubeSearch(\n",
" TutorialSearch(title_search=\"RAG\", sort_by=\"view_count\", relevance_rank=1),\n",
" TutorialSearch(content_search=\"RAG\", sort_by=\"view_count\", relevance_rank=2),\n",
" TutorialSearch(\n",
" content_search=\"retrieval augmented generation\",\n",
" sort_by=\"view_count\",\n",
" relevance_rank=3,\n",
" ),\n",
" LangChainYouTubeSearch(\n",
" content_search=\"retrieval\", sort_by=\"view_count\", relevance_rank=4\n",
" ),\n",
" TutorialSearch(content_search=\"retrieval\", sort_by=\"view_count\", relevance_rank=4),\n",
"]\n",
"examples.append({\"input\": question, \"tool_calls\": queries})"
]
Expand All @@ -1547,13 +1543,13 @@
"source": [
"question = \"What are some short videos about agentic systems with local models?\"\n",
"queries = [\n",
" LangChainYouTubeSearch(\n",
" TutorialSearch(\n",
" content_search=\"how to build an agent using a local model\",\n",
" sort_by=\"length\",\n",
" sort_order=\"ascending\",\n",
" relevance_rank=1,\n",
" ),\n",
" LangChainYouTubeSearch(\n",
" TutorialSearch(\n",
" title_search=\"agent local model\",\n",
" sort_by=\"length\",\n",
" sort_order=\"ascending\",\n",
Expand Down

0 comments on commit 2be47ec

Please sign in to comment.