mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-19 19:11:33 +00:00
fix typo (#25673)
This commit is contained in:
parent
d886f4e107
commit
61228da1c4
@ -445,7 +445,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"def plt_img_base64(img_base64):\n",
|
"def plt_img_base64(img_base64):\n",
|
||||||
" \"\"\"Disply base64 encoded string as image\"\"\"\n",
|
" \"\"\"Display base64 encoded string as image\"\"\"\n",
|
||||||
" # Create an HTML img tag with the base64 string as the source\n",
|
" # Create an HTML img tag with the base64 string as the source\n",
|
||||||
" image_html = f'<img src=\"data:image/jpeg;base64,{img_base64}\" />'\n",
|
" image_html = f'<img src=\"data:image/jpeg;base64,{img_base64}\" />'\n",
|
||||||
" # Display the image by rendering the HTML\n",
|
" # Display the image by rendering the HTML\n",
|
||||||
|
@ -336,7 +336,7 @@
|
|||||||
" # Create a prompt template with format instructions and the query\n",
|
" # Create a prompt template with format instructions and the query\n",
|
||||||
" prompt = PromptTemplate(\n",
|
" prompt = PromptTemplate(\n",
|
||||||
" template=\"\"\"You are generating questions that is well optimized for retrieval. \\n \n",
|
" template=\"\"\"You are generating questions that is well optimized for retrieval. \\n \n",
|
||||||
" Look at the input and try to reason about the underlying sematic intent / meaning. \\n \n",
|
" Look at the input and try to reason about the underlying semantic intent / meaning. \\n \n",
|
||||||
" Here is the initial question:\n",
|
" Here is the initial question:\n",
|
||||||
" \\n ------- \\n\n",
|
" \\n ------- \\n\n",
|
||||||
" {question} \n",
|
" {question} \n",
|
||||||
@ -643,7 +643,7 @@
|
|||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3 (ipykernel)",
|
"display_name": "Python 3.11.1 64-bit",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "python3"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
@ -657,7 +657,12 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.9.16"
|
"version": "3.11.1"
|
||||||
|
},
|
||||||
|
"vscode": {
|
||||||
|
"interpreter": {
|
||||||
|
"hash": "1a1af0ee75eeea9e2e1ee996c87e7a2b11a0bebd85af04bb136d915cefc0abce"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
@ -647,7 +647,7 @@
|
|||||||
"metadata": {},
|
"metadata": {},
|
||||||
"source": [
|
"source": [
|
||||||
"**Now we see the results are correct as it is mentioned in earnings release.** <br>\n",
|
"**Now we see the results are correct as it is mentioned in earnings release.** <br>\n",
|
||||||
"**To further automate, we will create a chain that will take input as question and retriever so that we don't need to retrieve documents seperately**"
|
"**To further automate, we will create a chain that will take input as question and retriever so that we don't need to retrieve documents separately**"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -734,9 +734,9 @@
|
|||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "rag-on-intel",
|
"display_name": "Python 3.11.1 64-bit",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "rag-on-intel"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
@ -748,7 +748,12 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.11.9"
|
"version": "3.11.1"
|
||||||
|
},
|
||||||
|
"vscode": {
|
||||||
|
"interpreter": {
|
||||||
|
"hash": "1a1af0ee75eeea9e2e1ee996c87e7a2b11a0bebd85af04bb136d915cefc0abce"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
Loading…
Reference in New Issue
Block a user