lmstudio-ai / lmstudio-ai/docs

File uploading for embedding via API ?

Open
#182 0 comments 5 reactions 0 assignees View on GitHub
Dominant language
MDX
Stars
172
Forks
128
Avg merge
8m
Merged PRs (30d)
1

Description

Can't find any mention of file uploads via API calls, OpenAI API endpoints have `/v1/files`
But when I upload the file, it takes time, as if it is uploading, then I get an error.

I've noticed LM Studio uses a built-in tool, `rag-v1`. If we call that tool via chat in the API, how do we upload the file? Or is this simply not possible?

Would I need to add another layer to break down the document with LangChain and add embeddings via LM Studio text embedding?

No reference to any documentation about working with files with the web API, only found image uploads..

Any help would be appreciated😁

Contributor guide

Open the contributing guide

Research direction

Start by checking the documentation for API file uploads, the `/v1/files` endpoint, and the `rag-v1` tool mentioned in the issue. Determine whether file upload and retrieval-augmented generation are supported, and document the supported workflow or state clearly that an external preprocessing and embedding layer is required.

Written by the indexing model from the issue text.

Assessment

Domain
api, documentation
Issue type
Documentation
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.