Datasets:
url stringlengths 44 97 | text stringlengths 387 36.7k | 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 siz... | [
-0.011886247433722,
0.01021480280906,
-0.037519499659538,
-0.022918013855815,
-0.0014874376356602,
-0.014668423682451,
0.012825035490096,
-0.019091518595815,
0.0035137929953635,
0.013317940756679,
0.011386735364795,
0.00044960991363041,
0.047424737364054,
0.00024255816242658,
-0.02652368... | 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 automatically ... | [
0.0028649442829192,
0.0072644627653062,
-0.041253414005041,
0.010938008315861,
0.0023589979391545,
-0.018494455143809,
0.02902858518064,
-0.0031760102137923,
0.0098356511443853,
0.003775377990678,
-0.015012594871223,
-0.013650989159942,
0.0052100699394941,
0.028253078460693,
-0.009179932... | 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.041164819151163,
0.014733190648258,
-0.040049634873867,
0.011828580871224,
-0.0027093514800072,
0.0057183871977031,
0.042495869100094,
-0.013356228359044,
-0.0076662059873343,
-0.0024389503523707,
0.022771380841732,
0.020913157612085,
0.011488654650748,
0.017075330018997,
0.0017733009... | 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.0088011873885989,
0.0080639841035008,
-0.073724195361137,
0.012637674808502,
-0.000082004946307279,
-0.018897108733654,
0.05219703540206,
-0.014640203677118,
0.013026957400143,
-0.0080210780724883,
-0.0098376572132111,
0.00349450414069,
0.0087370965629816,
0.009175949729979,
-0.000275... | en | 21-R4 |
https://developer.4d.com/docs/fr/settings/interface.html | Page Interface La page Interface vous permet de régler diverses options liées à l'interface du projet. Général Cette zone vous permet de personnaliser diverses options d'affichage. Police à utiliser avec la commande MESSAGE Le bouton Sélectionner... vous permet de définir la police et la taille des caractères utilisés ... | [
-0.00682891625911,
0.021967438980937,
-0.04507851973176,
0.0088464990258217,
-0.0095532760024071,
-0.012768253684044,
0.0094682713970542,
-0.018015023320913,
0.018101850524545,
0.015134521760046,
-0.0098795164376497,
0.008212735876441,
0.037674564868212,
0.0061813774518669,
-0.0145954973... | fr | 21-R4 |
https://developer.4d.com/docs/fr/settings/database.html | Page Base de données Page Stockage de données Cette page vous permet de paramétrer le stockage des données de la base 4D sur le disque. Paramètres généraux Autoriser l'ouverture du fichier de données en lecture seule Cette option permet de paramétrer le fonctionnement de l’application en cas d’ouverture d’un fichier de... | [
0.030712271109223,
-0.0028379112482071,
-0.052023824304342,
0.019175453111529,
0.00631901063025,
-0.025226589292288,
0.037308521568775,
-0.0019148078281432,
0.014931107871234,
-0.019182845950127,
-0.0052729253657162,
-0.010758113116026,
0.0075967535376549,
0.045318376272917,
-0.004190954... | fr | 21-R4 |
https://developer.4d.com/docs/fr/settings/web.html | "Page Web Les onglets de la page Web permettent de paramétrer les multiples aspects du serveur Web (...TRUNCATED) | [-0.031415898352861,0.015551334246993,-0.030963568016887,-0.0035753401461989,0.0070041199214756,0.01(...TRUNCATED) | fr | 21-R4 |
https://developer.4d.com/docs/fr/settings/overview.html | "Propriétés Les Propriétés configurent le fonctionnement du projet en cours. Ces paramètres peu(...TRUNCATED) | [-0.013778162188828,0.024215880781412,-0.050016228109598,-0.0023396038450301,0.00071124668465927,-0.(...TRUNCATED) | fr | 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 option(...TRUNCATED) | [-0.017367172986269,0.018286658450961,-0.066248409450054,0.0054912557825446,-0.034663166850805,-0.01(...TRUNCATED) | 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 app(...TRUNCATED) | [0.015083647333086,0.034482058137655,-0.057357188314199,0.018727634102106,0.0094559947028756,-0.0110(...TRUNCATED) | en | 21-R4 |
doc4d-2026-08-10
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 BGE-M3 (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— seelanguagecolumn 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
- Repository: https://huggingface.co/datasets/keisuke-miyako/doc4d-2026-08-10
- Original documentation site: https://developer.4d.com/
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 BGE-M3-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
);
embeddingis indexed for approximate/exact nearest-neighbor search (cosine distance).url,language,version,textare 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
- Model: keisuke-miyako/bge-m3-gguf-q8_0
- Quantization:
Q8_0(BGE-M3-Q8_0.gguf) - Embedding dimension: 1024
- Distance metric: cosine
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/textto 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-10) 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 BGE-M3-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-10", 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
- HTML pages from developer.4d.com were fetched and converted to plain text.
- Text was chunked and each chunk embedded with BGE-M3-Q8_0 (1024-dim).
- Chunks + embeddings + metadata were written to
data.jsonl. data.jsonlwas loaded into asqlite-vecvec0virtual table (chunks) indoc.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-10) and will drift out of date as the docs are updated.
- Coverage: only pages that were crawled/extracted are represented; gaps in
languageorversionmetadata may exist for some chunks (nullvalues). - 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
BGE-M3is 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-10: Semantic search dataset for 4D Documentation},
author = {keisuke-miyako},
year = {2026},
howpublished = {\url{https://huggingface.co/datasets/keisuke-miyako/doc4d-2026-08-10}}
}
Also consider citing the embedding model:
@misc{xlm-roberta,
title = {BGE-M3},
author = {BAAI},
howpublished = {\url{https://huggingface.co/BAAI/bge-m3}}
}
Dataset Card Contact
For questions about this dataset, open a discussion on the repository.
- Downloads last month
- 61