Dataset Viewer
Auto-converted to Parquet Duplicate
url
stringlengths
44
97
text
stringlengths
0
39.4k
embedding
listlengths
1.02k
1.02k
language
stringclasses
5 values
version
stringclasses
6 values
https://developer.4d.com/docs/settings/interface.html
Interface page You use the Interface page to set various options related to the project interface. General​ This area lets you set various options concerning display. Font to use with the MESSAGE command​ Click Select... to set the font and size for the characters used by the MESSAGE command. The default font and its s...
[ 0.063191100955009, -0.031481608748436, -0.023478612303734, -0.014799861237407, 0.026719931513071, -0.034646410495043, -0.012740079313517, 0.072084337472916, -0.022216387093067, 0.01989777199924, -0.020655028522015, 0.010598290711641, -0.019430726766586, -0.058147143572569, 0.009881156496...
en
21-R4
https://developer.4d.com/docs/settings/database.html
Database page Data storage page​ You use this page to configure data storage on disk for the 4D database. General Settings​ Allow Read Only Data file Use​ This option allows configuration of the application operation when opening a locked data file at the operating system level. 4D includes a mechanism that automatical...
[ 0.06048945337534, 0.044617556035519, -0.0056264540180564, -0.01151639316231, 0.019364072009921, -0.074123911559582, -0.010025779716671, 0.042367447167635, -0.048415407538414, 0.029801372438669, -0.077954769134521, 0.042533159255981, 0.0037497775629163, -0.00023230990336742, 0.02869332395...
en
21-R4
https://developer.4d.com/docs/settings/web.html
Web page Using the tabs on the Web page, you can configure various aspects of the integrated Web server of 4D (security, startup, connections, Web services, etc.). For more information about how the 4D Web server works, see Web server. For more information about 4D Web services, refer to the Publication and use of Web ...
[ 0.049662198871374, 0.050462916493416, 0.0094193341210485, -0.033150427043438, 0.00038707634666935, -0.039888743311167, -0.01596362143755, 0.019433742389083, -0.033738549798727, 0.067084215581417, -0.056878175586462, 0.037289805710316, 0.0008174201939255, -0.034837651997805, -0.0226882249...
en
21-R4
https://developer.4d.com/docs/settings/overview.html
Settings The Settings configure how the current project functions. These parameters may be different for each project. They include the listening ports, backup configurations, security options, Web parameters, etc. info 4D provides another set of parameters, called Preferences, that apply to the 4D IDE application. For...
[ 0.054783888161182, 0.034077782183886, 0.028030948713422, 0.0014213670510799, 0.045201003551483, -0.068781964480877, 0.033433675765991, 0.034014314413071, -0.040434408932924, 0.016581850126386, -0.058283027261496, 0.026231775060296, 0.000025025832655956, -0.0062147541902959, -0.0009298918...
en
21-R4
https://developer.4d.com/docs/settings/sql.html
SQL page This page is used to configure the publishing parameters, access rights, and engine options of the 4D SQL Server. SQL Server Publishing​ See the Configuration of 4D SQL Server page on doc.4d.com. SQL Access Control for the default schema​ See the Configuration of 4D SQL Server page on doc.4d.com. SQL Engine Op...
[ 0.048494327813387, 0.050255469977856, 0.028732758015394, 0.0056244041770697, 0.0049298708327115, -0.060325365513563, -0.013163003139198, 0.046703431755304, -0.018657730892301, 0.034410282969475, -0.04075375571847, 0.071875125169754, -0.022839346900582, -0.0093290498480201, 0.005837341770...
en
21-R4
https://developer.4d.com/docs/settings/security.html
Security page This page contains options related to data access and protection for your desktop applications. Note: For a general overview of 4D's security features, see the 4D Security guide. Data Access / Remote Users Access​ These settings do not apply to project databases opened in single-user mode. Design and Runt...
[ 0.04906078055501, 0.035971697419882, 0.0058419280685484, -0.012515911832452, -0.0025453385896981, -0.026746800169349, 0.06071263551712, 0.059567254036665, -0.044887326657772, -0.0075338631868362, -0.061366207897663, 0.029189186170697, -0.0056773773394525, -0.055531118065119, -0.006007540...
en
21-R4
https://developer.4d.com/docs/es/settings/interface.html
PΓ‘gina interfaz La pΓ‘gina Interfaz sirve para establecer varias opciones relacionadas con la interfaz del proyecto. General​ Esta Γ‘rea le permite configurar varias opciones relativas a la visualizaciΓ³n. Fuente a utilizar con el comando MESSAGE​ Haga clic en Seleccionar... para definir la fuente y el tamaΓ±o de los carac...
[ 0.060916878283024, -0.030109500512481, -0.035916987806559, -0.017474347725511, 0.017063986510038, -0.015290748327971, -0.0087112486362457, 0.033367395401001, 0.00012408429756761, 0.022959716618061, -0.022391924634576, -0.0080272108316422, -0.025954974815249, -0.06050344184041, 0.00566872...
es
21-R4
https://developer.4d.com/docs/es/settings/database.html
"PΓ‘gina Base de datos\nPΓ‘gina Almacenamiento de datos​\nEsta pΓ‘gina permite configurar el almac(...TRUNCATED)
[0.044528167694807,0.046078134328127,-0.0039901556447148,-0.017462162300944,0.026271771639585,-0.050(...TRUNCATED)
es
21-R4
https://developer.4d.com/docs/es/settings/web.html
"PΓ‘gina Web\nA travΓ©s de las pestaΓ±as de la pΓ‘gina Web, puede configurar varios aspectos del ser(...TRUNCATED)
[0.0324134118855,0.037375874817371,0.020173698663712,-0.033421896398067,-0.0062681590206921,-0.05197(...TRUNCATED)
es
21-R4
https://developer.4d.com/docs/es/settings/overview.html
"Propiedades\nLos parΓ‘metros configuran el funcionamiento del proyecto actual. Estos parΓ‘metros pu(...TRUNCATED)
[0.058675948530436,0.043281845748425,0.049731235951185,-0.0026456404011697,0.023866720497608,-0.0645(...TRUNCATED)
es
21-R4
End of preview. Expand in Data Studio

doc4d-2026-08-05

A vector-search dataset built from the 4D Documentation website. Each row is a chunk of plain text extracted from a documentation page, paired with a 1024-dimensional embedding, for semantic (meaning-based) search over url + text.

Dataset Details

Dataset Description

This dataset contains text chunks scraped and extracted from the 4D Documentation site (https://developer.4d.com/), embedded with LFM2.5-Embedding-350M (quantized Q8_0 GGUF), and packaged both as a raw JSONL source file and a ready-to-query SQLite vector database using sqlite-vec.

The intended use is semantic retrieval: given a natural-language query, embed it with the same model, run a nearest-neighbor search over the embedding column, and return the matching url and text (with language and version as metadata) so the source documentation can be located and cited.

  • Curated by: keisuke-miyako
  • Language(s): Text extracted from 4D Documentation pages (multiple locales, e.g. en, fr β€” see language column for the actual set present)
  • Source: Plain text extracted from HTML pages on https://developer.4d.com/
  • License: Not specified β€” inherits whatever license/terms apply to 4D Documentation content itself; check with 4D / 4D SAS before redistribution or commercial use.

Dataset Sources

Files

File Description
data.jsonl Source data. One JSON object per line, each a single documentation text chunk with its embedding.
doc.db SQLite database with a sqlite-vec virtual table (chunks) built from data.jsonl, ready for nearest-neighbor queries.

data.jsonl schema

Each line is a JSON object:

Field Type Description
embedding list[float], length 1024 Embedding vector for text, generated by LFM2.5-Embedding-350M-Q8_0.
url string Source URL of the documentation page the chunk was extracted from.
language string | null Language of the page/chunk, if known.
version string | null 4D product version the page applies to, if known.
text string Plain text of the chunk (HTML stripped).

doc.db schema

Built with the sqlite-vec extension as a vec0 virtual table:

CREATE VIRTUAL TABLE chunks USING vec0(
    embedding float[1024] distance_metric=cosine,
    +url TEXT,
    +language TEXT,
    +version TEXT,
    +text TEXT
);
  • embedding is indexed for approximate/exact nearest-neighbor search (cosine distance).
  • url, language, version, text are stored as auxiliary (+) columns, returned alongside search results but not searched directly.

The database was built from data.jsonl with a straightforward batch-insert script (float32 little-endian packing via Python's struct, sqlite_vec.load() to register the extension, batched commits of 2000 rows at a time).

Embedding Model

To query this dataset correctly, encode queries with the same model and quantization, since embeddings from a different model or checkpoint will not be comparable in the same vector space.

Uses

Direct Use

  • Semantic search over 4D Documentation: embed a natural-language question, retrieve the most similar chunks, and use the returned url/text to answer questions or point users to the right documentation page.
  • Building a retrieval-augmented generation (RAG) pipeline for 4D-related developer support or chat assistants.

Out-of-Scope Use

  • Not intended as a general-purpose or up-to-date mirror of 4D Documentation β€” content reflects a snapshot as of the dataset's build date (2026-08-05) and may be stale.
  • Not suitable for embeddings-space comparison against other embedding models without re-encoding.

How to Use

Query with sqlite-vec (Python)

import sqlite3
import struct
import sqlite_vec

DIM = 1024

def serialize(vec):
    return struct.pack(f"{len(vec)}f", *vec)

db = sqlite3.connect("doc.db")
db.enable_load_extension(True)
sqlite_vec.load(db)
db.enable_load_extension(False)

# query_embedding: list[float] of length 1024, produced by the
# same LFM2.5-Embedding-350M-Q8_0 model used to build this dataset
q_blob = serialize(query_embedding)

rows = db.execute(
    """
    SELECT url, text, language, version, distance
    FROM chunks
    WHERE embedding MATCH ?
    ORDER BY distance
    LIMIT ?
    """,
    (q_blob, 10),
).fetchall()

for url, text, language, version, distance in rows:
    print(distance, url)

Load the raw source with πŸ€— Datasets

from datasets import load_dataset

ds = load_dataset("keisuke-miyako/doc4d-2026-08-05", data_files="data.jsonl", split="train")
print(ds[0]["url"], ds[0]["text"][:200])

Note: the embedding field will load as a plain list of floats via this path; for actual vector search, use doc.db directly with sqlite-vec as shown above rather than a brute-force scan over data.jsonl.

Dataset Creation

Source Data

Text was extracted from HTML pages published on the 4D Documentation site and split into chunks. Each chunk retains its source url, and, where available, language and 4D product version metadata.

Data Collection and Processing

  1. HTML pages from developer.4d.com were fetched and converted to plain text.
  2. Text was chunked and each chunk embedded with LFM2.5-Embedding-350M-Q8_0 (1024-dim).
  3. Chunks + embeddings + metadata were written to data.jsonl.
  4. data.jsonl was loaded into a sqlite-vec vec0 virtual table (chunks) in doc.db, batched in groups of 2000 rows, using cosine distance as the similarity metric.

Who Produced This Data

Compiled by keisuke-miyako from publicly available 4D Documentation content.

Bias, Risks, and Limitations

  • Snapshot, not live data: the dataset reflects the state of 4D Documentation at build time (2026-08-05) and will drift out of date as the docs are updated.
  • Coverage: only pages that were crawled/extracted are represented; gaps in language or version metadata may exist for some chunks (null values).
  • Attribution: documentation text is owned by 4D SAS; this dataset redistributes extracted text for search/retrieval purposes. Confirm usage rights before commercial or redistribution use.
  • Embedding staleness: if LFM2.5-Embedding-350M is updated or superseded, embeddings here will not match newer versions of the model.

Citation

If you use this dataset, please cite the repository:

@misc{doc4d2026,
  title = {doc4d-2026-08-05: Semantic search dataset for 4D Documentation},
  author = {keisuke-miyako},
  year = {2026},
  howpublished = {\url{https://huggingface.co/datasets/keisuke-miyako/doc4d-2026-08-05}}
}

Also consider citing the embedding model:

@misc{lfm25embedding,
  title = {LFM2.5-Embedding-350M},
  author = {LiquidAI},
  howpublished = {\url{https://huggingface.co/LiquidAI/LFM2.5-Embedding-350M-GGUF}}
}

Dataset Card Contact

For questions about this dataset, open a discussion on the repository.

Downloads last month
72