weaviate / weaviate/typescript-client

Add support for URL input to Runtime Image

Open
#286 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
101
Forks
38
Avg merge
4d 12h
Merged PRs (30d)
2

Description

Currently, running a generative search with an image input doesn't support URLs as in input parameter...

i.e

response = await myCollection.generate.nearText("Movies", {
  groupedTask: {
    prompt: "Which movie is closest to the image in terms of atmosphere",
    images: [base64String],      // A list of base64 encoded strings of the image bytes
    // imageProperties: ["img"], // Properties containing images in Weaviate
}
  config: generativeParameters.anthropic({
    maxTokens: 1000
  }),
}, {
  limit: 5,
})

Could we support having a list of URLs as an input.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how Runtime Image inputs are handled for generative search in the TypeScript client, using the example in the issue as the expected entry point. Determine how the existing base64 image input is represented, then verify that a list of image URLs is accepted alongside it and behaves as requested.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
api
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.