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

Refactor rest server implementation #2091

Merged
merged 1 commit into from
May 23, 2024
Merged

Conversation

blythed
Copy link
Collaborator

@blythed blythed commented May 22, 2024

Make changes to make rest compatible with the new serialization protocol.
This greatly simplifies the implementation.

@blythed blythed force-pushed the rest/refactor branch 5 times, most recently from 9f66ccd to 4bc35f4 Compare May 23, 2024 07:38
@blythed blythed marked this pull request as ready for review May 23, 2024 07:47
@blythed blythed force-pushed the rest/refactor branch 5 times, most recently from faa303c to d91fb9c Compare May 23, 2024 10:41
@blythed blythed force-pushed the rest/refactor branch 3 times, most recently from 841d57e to 26c6a4f Compare May 23, 2024 11:44
Copy link
Collaborator

@fazlulkarimweb fazlulkarimweb left a comment

Choose a reason for hiding this comment

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

LGTM.

default: "*args,**kwargs"
RetrievalPrompt:
_path: superduperdb/ext/llm/prompt/RetrievalPrompt
select:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Here. I think the select field should be enclosed. Otherwise frontend can't render forms.
"select": {
"type": "query",
}

identifier:
type: str
components:
type: [model, listener, vector_index]
Copy link
Collaborator

Choose a reason for hiding this comment

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

type is used to define what kind of form is rendered. the type of type should be always str to render in the frontend.

@blythed blythed merged commit 9b541ee into SuperDuperDB:main May 23, 2024
3 checks passed
@blythed blythed deleted the rest/refactor branch June 1, 2024 10:06
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

Successfully merging this pull request may close these issues.

None yet

2 participants