Skip to content

Commit

Permalink
GigaChat embeddings example (not working yet)
Browse files Browse the repository at this point in the history
  • Loading branch information
Konstantin Krestnikov authored and Konstantin Krestnikov committed Jan 9, 2024
1 parent 112d8ad commit ec0acc3
Showing 1 changed file with 60 additions and 0 deletions.
60 changes: 60 additions & 0 deletions docs/docs/use_cases/question_answering/gigachat_qa.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,14 @@
")"
]
},
{
"cell_type": "markdown",
"id": "592151a2",
"metadata": {},
"source": [
"Наконец можно задать вопрос нашей цепочке и получить правильный ответ!"
]
},
{
"cell_type": "code",
"execution_count": 28,
Expand All @@ -280,6 +288,58 @@
"source": [
"qa_chain({\"query\": question})"
]
},
{
"cell_type": "markdown",
"id": "ffa10ec4",
"metadata": {},
"source": [
"Несколько дополнительных вопросов для проверки работоспособности:"
]
},
{
"cell_type": "code",
"execution_count": 50,
"id": "8f619e09",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'query': 'Какая трость была у Воланда?',\n",
" 'result': 'Трость, которую держал Воланд, имела черный набалдашник в виде головы пуделя.'}"
]
},
"execution_count": 50,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"qa_chain({\"query\": \"Какая трость была у Воланда?\"})"
]
},
{
"cell_type": "code",
"execution_count": 51,
"id": "a4a54b82",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{'query': 'В чем главная проблема человека?',\n",
" 'result': 'Главная проблема человека, согласно данному контексту, заключается в том, что он не может управлять своей жизнью и всем распорядком на земле без точного плана на некоторый срок.'}"
]
},
"execution_count": 51,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"qa_chain({\"query\": \"В чем главная проблема человека?\"})"
]
}
],
"metadata": {
Expand Down

0 comments on commit ec0acc3

Please sign in to comment.