- Notifications
You must be signed in to change notification settings - Fork328
SDK - Bump to work with python3.12#1407
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
NextNext commit
Bump to work with python3.12
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commit372b4880fbca786552d7368d1de7c51efcddfc6b
There are no files selected for viewing
2 changes: 1 addition & 1 deletionpgml-sdks/pgml/python/manual-build-deploy.sh
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
121 changes: 121 additions & 0 deletionspgml-sdks/pgml/python/pgml/pgml.pyi
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
def init_logger(level: Optional[str] = "", format: Optional[str] = "") -> None | ||
def SingleFieldPipeline(name: str, model: Optional[Model] = None, splitter: Optional[Splitter] = None, parameters: Optional[Json] = Any) -> Pipeline | ||
async def migrate() -> None | ||
Json = Any | ||
DateTime = int | ||
GeneralJsonIterator = Any | ||
GeneralJsonAsyncIterator = Any | ||
# Top of file key: A12BECOD! | ||
from typing import List, Dict, Optional, Self, Any | ||
class Builtins: | ||
def __init__(self, database_url: Optional[str] = "Default set in Rust. Please check the documentation.") -> Self | ||
... | ||
def query(self, query: str) -> QueryRunner | ||
... | ||
async def transform(self, task: Json, inputs: List[str], args: Optional[Json] = Any) -> Json | ||
... | ||
class Collection: | ||
def __init__(self, name: str, database_url: Optional[str] = "Default set in Rust. Please check the documentation.") -> Self | ||
... | ||
async def add_pipeline(self, pipeline: Pipeline) -> None | ||
... | ||
async def remove_pipeline(self, pipeline: Pipeline) -> None | ||
... | ||
async def enable_pipeline(self, pipeline: Pipeline) -> None | ||
... | ||
async def disable_pipeline(self, pipeline: Pipeline) -> None | ||
... | ||
async def upsert_documents(self, documents: List[Json], args: Optional[Json] = Any) -> None | ||
... | ||
async def get_documents(self, args: Optional[Json] = Any) -> List[Json] | ||
... | ||
async def delete_documents(self, filter: Json) -> None | ||
... | ||
async def search(self, query: Json, pipeline: Pipeline) -> Json | ||
... | ||
async def add_search_event(self, search_id: int, search_result: int, event: Json, pipeline: Pipeline) -> None | ||
... | ||
async def vector_search(self, query: Json, pipeline: Pipeline) -> List[Json] | ||
... | ||
async def archive(self) -> None | ||
... | ||
def query(self) -> QueryBuilder | ||
... | ||
async def get_pipelines(self) -> List[Pipeline] | ||
... | ||
async def get_pipeline(self, name: str) -> Pipeline | ||
... | ||
async def exists(self) -> bool | ||
... | ||
async def upsert_directory(self, path: str, args: Json) -> None | ||
... | ||
async def get_pipeline_status(self, pipeline: Pipeline) -> Json | ||
... | ||
async def generate_er_diagram(self, pipeline: Pipeline) -> str | ||
... | ||
async def upsert_file(self, path: str) -> None | ||
... | ||
class Model: | ||
def __init__(self, name: Optional[str] = "Default set in Rust. Please check the documentation.", source: Optional[str] = "Default set in Rust. Please check the documentation.", parameters: Optional[Json] = Any) -> Self | ||
... | ||
class OpenSourceAI: | ||
def __init__(self, database_url: Optional[str] = "Default set in Rust. Please check the documentation.") -> Self | ||
... | ||
async def chat_completions_create_stream_async(self, model: Json, messages: List[Json], max_tokens: Optional[Any] = Any, temperature: Optional[float] = 1, n: Optional[Any] = Any, chat_template: Optional[str] = "Default set in Rust. Please check the documentation.") -> GeneralJsonAsyncIterator | ||
... | ||
def chat_completions_create_stream(self, model: Json, messages: List[Json], max_tokens: Optional[Any] = Any, temperature: Optional[float] = 1, n: Optional[Any] = Any, chat_template: Optional[str] = "Default set in Rust. Please check the documentation.") -> GeneralJsonIterator | ||
... | ||
async def chat_completions_create_async(self, model: Json, messages: List[Json], max_tokens: Optional[Any] = Any, temperature: Optional[float] = 1, n: Optional[Any] = Any, chat_template: Optional[str] = "Default set in Rust. Please check the documentation.") -> Json | ||
... | ||
def chat_completions_create(self, model: Json, messages: List[Json], max_tokens: Optional[Any] = Any, temperature: Optional[float] = 1, n: Optional[Any] = Any, chat_template: Optional[str] = "Default set in Rust. Please check the documentation.") -> Json | ||
... | ||
class Pipeline: | ||
def __init__(self, name: str, schema: Optional[Json] = Any) -> Self | ||
... | ||
class QueryBuilder: | ||
def limit(self, limit: int) -> Self | ||
... | ||
def filter(self, filter: Json) -> Self | ||
... | ||
def vector_recall(self, query: str, pipeline: Pipeline, query_parameters: Optional[Json] = Any) -> Self | ||
... | ||
async def fetch_all(self) -> List[tuple[float, str, Json]] | ||
... | ||
class QueryRunner: | ||
async def fetch_all(self) -> Json | ||
... | ||
async def execute(self) -> None | ||
... | ||
def bind_string(self, bind_value: str) -> Self | ||
... | ||
def bind_int(self, bind_value: int) -> Self | ||
... | ||
def bind_float(self, bind_value: float) -> Self | ||
... | ||
def bind_bool(self, bind_value: bool) -> Self | ||
... | ||
def bind_json(self, bind_value: Json) -> Self | ||
... | ||
class Splitter: | ||
def __init__(self, name: Optional[str] = "Default set in Rust. Please check the documentation.", parameters: Optional[Json] = Any) -> Self | ||
... | ||
class TransformerPipeline: | ||
def __init__(self, task: str, model: Optional[str] = "Default set in Rust. Please check the documentation.", args: Optional[Json] = Any, database_url: Optional[str] = "Default set in Rust. Please check the documentation.") -> Self | ||
... | ||
async def transform(self, inputs: List[Json], args: Optional[Json] = Any) -> Json | ||
... | ||
async def transform_stream(self, input: Json, args: Optional[Json] = Any, batch_size: Optional[Any] = Any) -> GeneralJsonAsyncIterator | ||
... |
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.