Implement Azure OpenAI vector embeddings for Romanian Bible
- Add pgvector support with bible_passages table for vector search - Create Python ingestion script for Azure OpenAI embed-3 embeddings - Implement hybrid search combining vector similarity and full-text search - Update AI chat to use vector search with Azure OpenAI gpt-4o - Add floating chat component with Material UI design - Import complete Romanian Bible (FIDELA) with 30K+ verses - Add vector search library for semantic Bible search - Create multi-language implementation plan for future expansion 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -78,6 +78,26 @@ model BibleVerse {
|
||||
@@index([version])
|
||||
}
|
||||
|
||||
model BiblePassage {
|
||||
id String @id @default(uuid())
|
||||
testament String // 'OT' or 'NT'
|
||||
book String
|
||||
chapter Int
|
||||
verse Int
|
||||
ref String // Generated field: "book chapter:verse"
|
||||
lang String @default("ro")
|
||||
translation String @default("FIDELA")
|
||||
textRaw String @db.Text
|
||||
textNorm String @db.Text // Normalized text for embedding
|
||||
embedding Unsupported("vector(3072)")?
|
||||
createdAt DateTime @default(now())
|
||||
updatedAt DateTime @updatedAt
|
||||
|
||||
@@unique([translation, lang, book, chapter, verse])
|
||||
@@index([book, chapter])
|
||||
@@index([testament])
|
||||
}
|
||||
|
||||
model ChatMessage {
|
||||
id String @id @default(uuid())
|
||||
userId String
|
||||
|
||||
Reference in New Issue
Block a user