Back to Projects
IA de Embeddings Bíblicas PT-BR

Embeddings Bíblicas PT‑BR

The first semantic embedding model for biblical search in Brazilian Portuguese

Live

Project Overview

Embeddings Bíblicas PT-BR is the first semantic embedding model for biblical search in Brazilian Portuguese. Development started in early 2026 as part of my research into AI and Christian spirituality.

Built by another similarity model on ~9,000 curated query-verse pairs, the model understands the emotional and spiritual intent behind what someone is feeling — not just keywords. When someone types "I feel like God abandoned me", it finds Isaiah 49:14. When they type "I can't stop sinning", it surfaces Romans 7:24-25.

The model runs on a custom inference stack on an Orange Pi RK3588, using the NPU via RKNN for low-latency embedding generation. A public API delivers full results including the main verse, secondary references, and a theological justification — all in a single call.

This is more than a search model. It's the foundation of a new kind of spiritual companion that meets people where they are, in their own words.

How It Works

From a feeling to Scripture — in milliseconds

1

User Inputs a Feeling or Question

The user types something natural — a feeling, a prayer, a struggle — in Brazilian Portuguese. No need for keywords or Bible jargon. The model was trained to understand human emotion, not just text.

2

Semantic Embedding Generation

The input is converted into a high-dimensional vector that captures its spiritual and emotional meaning. This runs on-device via the RK3588 NPU using RKNN, delivering results with very low latency.

3

Cosine Similarity Search

The query embedding is compared against all indexed verse embeddings using cosine similarity. The closest matches are ranked by how well they address the intent behind the input.

4

Structured API Response

The public API returns a full structured response: the primary verse, secondary references, and a theological justification — all in a single call, ready to integrate into any app or service.

Key Features

Built for spiritual search, not just text matching

Semantic Intent Search

Understands the emotional and spiritual meaning behind a query — not just surface-level keywords. Matches feelings to Scripture with remarkable accuracy.

Biblical Understanding

Trained on ~9,000 curated query-verse pairs covering a wide range of spiritual experiences — doubt, grief, guilt, hope, praise, and more.

NPU-Accelerated Inference

Runs on an Orange Pi RK3588 using the NPU via RKNN for fast, efficient embedding generation entirely on local edge hardware — no cloud dependency.

Public REST API

A clean API delivers the primary verse, secondary references, and a theological justification in a single request — easy to integrate into any project.

PT-BR Native

Built specifically for Brazilian Portuguese from the ground up — the first model of its kind designed for the Brazilian Christian community.

Curated Training Data

Every training pair was carefully selected and curated for theological accuracy and linguistic quality, ensuring the model reflects genuine scriptural wisdom.

Technology Stack

Edge AI meets biblical intelligence

Python

RKNN / NPU

Orange Pi RK3588

Sentence Transformers

REST API

Vector Search

API Example

One request. One feeling. The right Scripture — in milliseconds.

Need a token? Get one free at /api/docs — log in with your PLVictor account.

Request
curl POST /api/embed/search
curl -X POST https://plvictor.com/api/embed/search \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN" \
  -d '{
    "text": "sinto que Deus me abandonou",
    "top_k": 3
  }'
Response
JSON 200 OK
{
  "query": "sinto que Deus me abandonou",
  "results": [
    {
      "reference": "Isaías 49:14",
      "text": "Mas Sião diz: Já me desamparou o Senhor...",
      "translation": "ARC",
      "theological_justification": "O povo de Israel, no exílio, achou que Deus os tinha esquecido...",
      "secondary_verses": [
        {
          "reference": "Hebreus 13:5",
          "text": "Não te deixarei, nem te desampararei.",
          "translation": "ARC"
        }
      ]
    }
  ]
}

Try the Biblical Embeddings API

One query. One feeling. The right Scripture.

View API Docs