Skip to content

Commit

Permalink
Update schema to match current state of quickstart
Browse files Browse the repository at this point in the history
  • Loading branch information
deepbuzin committed Feb 20, 2025
1 parent 08e5275 commit dfbdc0f
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions docs/ai/quickstart_fastapi_ai.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,17 +33,17 @@ Using the built-in RAG
type Deck extending Timestamped {
required name: str;
description: str;
cards := (
select .<deck[is Card]
order by .order
);
multi cards: Card {
constraint exclusive;
on target delete allow;
};
};
type Card extending Timestamped {
required order: int64;
required front: str;
required back: str;
required deck: Deck;
}
}
Expand Down Expand Up @@ -75,17 +75,17 @@ Using the built-in RAG
type Deck extending Timestamped {
required name: str;
description: str;
cards := (
select .<deck[is Card]
order by .order
);
multi cards: Card {
constraint exclusive;
on target delete allow;
};
};
type Card extending Timestamped {
required order: int64;
required front: str;
required back: str;
required deck: Deck;
}
}
Expand Down Expand Up @@ -198,17 +198,17 @@ Using the built-in RAG
type Deck extending Timestamped {
required name: str;
description: str;
cards := (
select .<deck[is Card]
order by .order
);
multi cards: Card {
constraint exclusive;
on target delete allow;
};
};
type Card extending Timestamped {
required order: int64;
required front: str;
required back: str;
required deck: Deck;
+ deferred index ext::ai::index(embedding_model := 'text-embedding-3-small')
+ on (.front ++ ' ' ++ .back);
Expand Down

0 comments on commit dfbdc0f

Please sign in to comment.