Skip to content

Vector store notebook "Add documents" section does not add documents #51

@jackwotherspoon

Description

@jackwotherspoon

I believe there is a step missing from the vector store notebook "Add documents" section. It never actually adds the documents to the vector store...

import uuid

from langchain_community.document_loaders import HNLoader

loader = HNLoader("https://news.ycombinator.com/item?id=34817881")

documents = loader.load()
ids = [str(uuid.uuid4()) for _ in range(len(documents))]

Code affected.

"import uuid\n",
"\n",
"from langchain_community.document_loaders import HNLoader\n",
"\n",
"loader = HNLoader(\"https://news.ycombinator.com/item?id=34817881\")\n",
"\n",
"documents = loader.load()\n",
"ids = [str(uuid.uuid4()) for _ in range(len(documents))]"

There are also 🔐 emojis in the section which have no reason to be there...

Metadata

Metadata

Labels

api: spannerIssues related to the googleapis/langchain-google-spanner-python API.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions