🌐 AI搜索 & 代理 主页
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions pgml-sdks/pgml/src/models.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ use crate::types::{DateTime, Json};
// A multi field pipeline
#[enum_def]
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Pipeline {
pub id: i64,
pub name: String,
Expand All @@ -19,6 +20,7 @@ pub struct Pipeline {
// A model used to perform some task
#[enum_def]
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Model {
pub id: i64,
pub created_at: DateTime,
Expand All @@ -29,6 +31,7 @@ pub struct Model {
// A text splitter
#[enum_def]
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Splitter {
pub id: i64,
pub created_at: DateTime,
Expand Down Expand Up @@ -63,6 +66,7 @@ impl Document {
// A collection of documents
#[enum_def]
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Collection {
pub id: i64,
pub created_at: DateTime,
Expand All @@ -74,6 +78,7 @@ pub struct Collection {
// An embedding
#[enum_def]
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Embedding {
pub id: i64,
pub created_at: DateTime,
Expand All @@ -83,6 +88,7 @@ pub struct Embedding {

// A chunk of split text
#[derive(FromRow)]
#[allow(dead_code)]
pub struct Chunk {
pub id: i64,
pub created_at: DateTime,
Expand All @@ -93,6 +99,7 @@ pub struct Chunk {

// A tsvector of a document
#[derive(FromRow)]
#[allow(dead_code)]
pub struct TSVector {
pub id: i64,
pub created_at: DateTime,
Expand Down
1 change: 1 addition & 0 deletions pgml-sdks/pgml/src/pipeline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ impl From<Json> for InvividualSyncStatus {
}

#[derive(Debug, Clone)]
#[allow(dead_code)]
pub struct PipelineDatabaseData {
pub id: i64,
pub created_at: DateTime,
Expand Down