mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-25 08:03:39 +00:00
docs: Update openvino example documents links (#20638)
This commit is contained in:
parent
baedc3ec0a
commit
53ae77b13e
@ -512,7 +512,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/llm-chatbot/rag-chatbot.ipynb)."
|
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/llm-rag-langchain)."
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -90,7 +90,7 @@
|
|||||||
"device = \"CPU\"\n",
|
"device = \"CPU\"\n",
|
||||||
"tokenizer = AutoTokenizer.from_pretrained(model_id)\n",
|
"tokenizer = AutoTokenizer.from_pretrained(model_id)\n",
|
||||||
"ov_model = OVModelForCausalLM.from_pretrained(\n",
|
"ov_model = OVModelForCausalLM.from_pretrained(\n",
|
||||||
" model_id, device=device, ov_config=ov_config\n",
|
" model_id, export=True, device=device, ov_config=ov_config\n",
|
||||||
")\n",
|
")\n",
|
||||||
"ov_pipe = pipeline(\n",
|
"ov_pipe = pipeline(\n",
|
||||||
" \"text-generation\", model=ov_model, tokenizer=tokenizer, max_new_tokens=10\n",
|
" \"text-generation\", model=ov_model, tokenizer=tokenizer, max_new_tokens=10\n",
|
||||||
@ -185,11 +185,11 @@
|
|||||||
" pipeline_kwargs={\"max_new_tokens\": 10},\n",
|
" pipeline_kwargs={\"max_new_tokens\": 10},\n",
|
||||||
")\n",
|
")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"ov_chain = prompt | ov_llm\n",
|
"chain = prompt | ov_llm\n",
|
||||||
"\n",
|
"\n",
|
||||||
"question = \"What is electroencephalography?\"\n",
|
"question = \"What is electroencephalography?\"\n",
|
||||||
"\n",
|
"\n",
|
||||||
"print(ov_chain.invoke({\"question\": question}))"
|
"print(chain.invoke({\"question\": question}))"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -229,7 +229,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
||||||
" \n",
|
" \n",
|
||||||
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/llm-chatbot)."
|
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/llm-rag-langchain)."
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -216,7 +216,7 @@
|
|||||||
"\n",
|
"\n",
|
||||||
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
"* [OpenVINO Get Started Guide](https://www.intel.com/content/www/us/en/content-details/819067/openvino-get-started-guide.html).\n",
|
||||||
"\n",
|
"\n",
|
||||||
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/blob/latest/notebooks/llm-chatbot/rag-chatbot.ipynb)."
|
"* [RAG Notebook with LangChain](https://github.com/openvinotoolkit/openvino_notebooks/tree/latest/notebooks/llm-rag-langchain)."
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
Loading…
Reference in New Issue
Block a user