8000 Update doc parsing by neilmehta24 · Pull Request #324 · lmstudio-ai/lmstudio-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Update doc parsing #324

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

Merged
merged 2 commits into from
May 29, 2025
Merged

Update doc parsing #324

merged 2 commits into from
May 29, 2025

Conversation

neilmehta24
Copy link
Member

No description provided.

@github-actions github-actions bot added the CLA signed Indicates if all contributors have signed the CLA label May 28, 2025
@@ -349,9 +350,25 @@ export class FilesNamespace {
*
* @deprecated Document parsing API is still in active development. Stay tuned for updates.
*/
public async parseDocument(fileHandle: FileHandle, stack?: string) {
public async parseDocument(fileHandle: FileHandle, parseOpts?: DocumentParsingOpts) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can provide defaults like so.

  public async parseDocument(fileHandle: FileHandle, parseOpts: DocumentParsingOpts = {}) {

public async parseDocument(fileHandle: FileHandle, stack?: string) {
public async parseDocument(fileHandle: FileHandle, parseOpts?: DocumentParsingOpts) {
const stack = getCurrentStack(1);
const parseOptsObj: DocumentParsingOpts = parseOpts || {};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

^ Use the default pattern like above

*
* @deprecated Document parsing API is still in active development. Stay tuned for updates.
*/
public async documentParserId(fileHandle: FileHandle) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "getDocumentParsingMethod"?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not in love with Method here. Can we do getDocumentParsingLibrary or getDocumentParsingBackend or getDocumentParsingFramework

8000
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Switched to getDocumentParsingLibrary


/**
* @deprecated
* N.B.: onProgress returns progress as a float taking values from 0 to 1, 1 being completed
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comment doesn't seem to belong here.

@neilmehta24 neilmehta24 merged commit 6b0e843 into main May 29, 2025
1 check passed
@neilmehta24 neilmehta24 deleted the neil/update-doc-parsing branch May 29, 2025 17:52
@github-actions github-actions bot locked and limited conversation to collaborators May 29, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA signed Indicates if all contributors have signed the CLA
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0