Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue on docs #1038

Open
eabatalov opened this issue Nov 19, 2024 · 0 comments
Open

Issue on docs #1038

eabatalov opened this issue Nov 19, 2024 · 0 comments

Comments

@eabatalov
Copy link
Contributor

Path: /inc-adoption

Hi. It seems like

@indexify_function()
def db_writer(docs: List[str]) -> List[List[float]]:
    chunks = [chunk(doc) for doc in docs]
    embeddings = [embed_chunk(chunk) for chunk in chunks]
    return embeddings

from the doc page has incorrect source code. I suppose it'd need to be something like this:

@indexify_function()
def db_writer(ce: ChunkEmbeddings)
    vectordb.write(ce. chunk, ce.embeddings)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant