mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-19 05:13:46 +00:00
docs: Update gemini vector docs (#29841)
# Description 2 changes: 1. removes get pass from the code example as it reads from stdio causing a freeze to occur 2. updates to the latest gemini model in the example --------- Co-authored-by: Chester Curme <chester.curme@gmail.com>
This commit is contained in:
parent
037b129b86
commit
1a55da9ff4
@ -78,7 +78,7 @@
|
||||
"source": [
|
||||
"from langchain_google_genai import GoogleGenerativeAIEmbeddings\n",
|
||||
"\n",
|
||||
"embeddings = GoogleGenerativeAIEmbeddings(model=\"models/embedding-001\")\n",
|
||||
"embeddings = GoogleGenerativeAIEmbeddings(model=\"models/text-embedding-004\")\n",
|
||||
"vector = embeddings.embed_query(\"hello, world!\")\n",
|
||||
"vector[:5]"
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user