Dataset Viewer
Auto-converted to Parquet Duplicate
content
large_stringlengths
3
20.5k
url
large_stringlengths
54
193
branch
large_stringclasses
4 values
source
large_stringclasses
42 values
embeddings
listlengths
384
384
score
float64
-0.21
0.65
This page serves two purposes: - Demonstrate how the Kubernetes documentation uses Markdown - Provide a "smoke test" document we can use to test HTML, CSS, and template changes that affect the overall documentation. ## Heading levels The above heading is an H2. The page title renders as an H1. The following sections sh...
https://github.com/kubernetes/website/blob/main//content/en/docs/test.md
main
kubernetes
[ -0.04984980449080467, 0.10505704581737518, 0.10544700920581818, 0.016173074021935463, 0.08123262226581573, 0.010598951019346714, -0.002077176235616207, -0.08193516731262207, 0.13194359838962555, 0.004316361621022224, -0.026886142790317535, -0.009028504602611065, -0.01619713008403778, -0.09...
0.151899
block-level content - A bullet list item can contain a numbered list. 1. Numbered sub-list item 1 1. Numbered sub-list item 2 ### Numbered lists 1. This is a list item. 1. This is another list item in the same list. The number you use in Markdown does not necessarily correlate to the number in the final output. By conv...
https://github.com/kubernetes/website/blob/main//content/en/docs/test.md
main
kubernetes
[ -0.09143475443124771, 0.0014037247747182846, 0.02888377197086811, -0.02814289554953575, 0.12125742435455322, 0.03750999644398689, -0.0009176437160931528, 0.05314797908067703, 0.019242828711867332, 0.0033598896116018295, -0.04950703680515289, 0.04562969133257866, 0.06249520555138588, -0.067...
0.079027
(view the Markdown source for this page). ```none {{}}This is a warning.{{< /alert \*/>}} ``` ## Links To format a link, put the link text inside square brackets, followed by the link target in parentheses. - `[Link to Kubernetes.io](https://kubernetes.io/)` or - `[Relative link to Kubernetes.io](/)` You can also use H...
https://github.com/kubernetes/website/blob/main//content/en/docs/test.md
main
kubernetes
[ -0.0479109063744545, 0.059666234999895096, 0.05144444853067398, 0.04869285970926285, 0.09288551658391953, -0.018382875248789787, 0.014205234125256538, -0.014765436761081219, 0.06105618551373482, 0.026186753064393997, -0.0017974149668589234, 0.03441382199525833, 0.04089979827404022, 0.02796...
0.11965
long that the text does not fit on a row. Bob-->Alice: Checking with John... Alice->John: Yes... John, how are you? {{}} You can check more [examples](https://mermaid-js.github.io/mermaid/#/examples) from the official docs. ## Sidebars and Admonitions Sidebars and admonitions provide ways to add visual importance to te...
https://github.com/kubernetes/website/blob/main//content/en/docs/test.md
main
kubernetes
[ -0.006334687117487192, 0.11115621775388718, 0.041959185153245926, -0.04314371570944786, 0.07602426409721375, 0.032256122678518295, 0.008192319422960281, -0.006087318062782288, 0.017750825732946396, -0.004539694637060165, 0.03547845780849457, 0.025075627490878105, 0.06368102878332138, -0.04...
0.011426
This task shows how to scale a StatefulSet. Scaling a StatefulSet refers to increasing or decreasing the number of replicas. ## {{% heading "prerequisites" %}} - StatefulSets are only available in Kubernetes version 1.5 or later. To check your version of Kubernetes, run `kubectl version`. - Not all stateful application...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/scale-stateful-set.md
main
kubernetes
[ 0.05862008035182953, -0.00012667436385527253, 0.0138937309384346, -0.009952420368790627, -0.06942189484834671, 0.021224508062005043, -0.04545633867383003, 0.004891069605946541, -0.0065234689973294735, 0.047849807888269424, -0.04439842328429222, -0.05656077340245247, 0.009047646075487137, -...
0.09754
This task shows you how to delete a {{< glossary\_tooltip term\_id="StatefulSet" >}}. ## {{% heading "prerequisites" %}} - This task assumes you have an application running on your cluster represented by a StatefulSet. ## Deleting a StatefulSet You can delete a StatefulSet in the same way you delete other resources in ...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/delete-stateful-set.md
main
kubernetes
[ -0.0037666079588234425, 0.04840220883488655, 0.047387294471263885, -0.021577883511781693, -0.024974651634693146, -0.015528649091720581, 0.06238654628396034, -0.14542211592197418, 0.07998239248991013, 0.02743048407137394, 0.00524123152717948, -0.07991985231637955, 0.021259505301713943, -0.0...
0.079116
A [HorizontalPodAutoscaler](/docs/concepts/workloads/autoscaling/horizontal-pod-autoscale/) (HPA for short) automatically updates a workload resource (such as a {{< glossary\_tooltip text="Deployment" term\_id="deployment" >}} or {{< glossary\_tooltip text="StatefulSet" term\_id="statefulset" >}}), with the aim of auto...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
main
kubernetes
[ -0.08157411217689514, 0.03337935730814934, 0.059815604239702225, -0.006419378798455, -0.10246378928422928, -0.032503288239240646, 0.00725207244977355, 0.0072174095548689365, 0.03836681321263313, 0.020751893520355225, -0.007887383922934532, -0.00550908874720335, -0.01295006275177002, -0.025...
0.146114
already existed, and isn't usually a problem). Please note that the current CPU consumption is 0% as there are no clients sending requests to the server (the ``TARGET`` column shows the average across all the Pods controlled by the corresponding deployment). ## Increase the load {#increase-load} Next, see how the autos...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
main
kubernetes
[ 0.03724787011742592, 0.007903684861958027, -0.006457910407334566, 0.030479498207569122, -0.06385917961597443, -0.0737345740199089, -0.05016687139868736, -0.013094484806060791, 0.027673011645674706, 0.040922947227954865, -0.03780185058712959, -0.05558657646179199, -0.07038963586091995, -0.0...
0.10247
cpu current: averageUtilization: 0 averageValue: 0 ``` Notice that the `targetCPUUtilizationPercentage` field has been replaced with an array called `metrics`. The CPU utilization metric is a \*resource metric\*, since it is represented as a percentage of a resource specified on pod containers. Notice that you can spec...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
main
kubernetes
[ 0.030567027628421783, -0.000021966876374790445, -0.024773897603154182, 0.08258584141731262, -0.042731575667858124, -0.03064275160431862, 0.018994271755218506, 0.035147637128829956, 0.04268457740545273, 0.03783326596021652, -0.05039944872260094, -0.12844493985176086, 0.004984423518180847, 0...
0.179638
serving a total of 10000 requests per second. ### Autoscaling on more specific metrics Many metrics pipelines allow you to describe metrics either by name or by a set of additional descriptors called \_labels\_. For all non-resource metric types (pod, object, and external, described below), you can specify an additiona...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
main
kubernetes
[ -0.021759582683444023, -0.004535249900072813, -0.018296891823410988, 0.05171401426196098, -0.05772973224520683, -0.034688662737607956, 0.044395264238119125, -0.013255774043500423, 0.10515111684799194, 0.01363364327698946, -0.05771443247795105, -0.11444330215454102, -0.06999962031841278, -0...
0.185285
------ ------- AbleToScale True ReadyForNewScale the last scale time was sufficiently old as to warrant a new scale ScalingActive True ValidMetricFound the HPA was able to successfully calculate a replica count from pods metric http\_requests ScalingLimited False DesiredWithinRange the desired replica count is within t...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough.md
main
kubernetes
[ -0.056684911251068115, -0.012476515024900436, -0.01227102242410183, 0.02649824693799019, -0.042623743414878845, -0.031031794846057892, -0.09819623827934265, 0.03489290177822113, 0.0022557454649358988, 0.028210828080773354, 0.03634284809231758, -0.005400725640356541, -0.01770228147506714, -...
0.115268
This page shows you how to run a single-instance stateful application in Kubernetes using a PersistentVolume and a Deployment. The application is MySQL. ## {{% heading "objectives" %}} - Create a PersistentVolume referencing a disk in your environment. - Create a MySQL Deployment. - Expose MySQL to other pods in the cl...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-single-instance-stateful-application.md
main
kubernetes
[ 0.040629807859659195, -0.07000302523374557, 0.031562719494104385, -0.016815323382616043, -0.09992477297782898, 0.0006716435891576111, -0.021172014996409416, 0.02694111503660679, 0.03867771849036217, 0.06806983798742294, -0.074599988758564, -0.07367121428251266, 0.087241992354393, -0.019350...
0.112912
pod ready: false If you don't see a command prompt, try pressing enter. mysql> ``` ## Updating The image or any other part of the Deployment can be updated as usual with the `kubectl apply` command. Here are some precautions that are specific to stateful apps: - Don't scale the app. This setup is for single-instance ap...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-single-instance-stateful-application.md
main
kubernetes
[ 0.08418925106525421, -0.06172074005007744, 0.051621805876493454, -0.026231937110424042, -0.06462475657463074, -0.06407296657562256, -0.028424089774489403, -0.013434831984341145, 0.02424166165292263, 0.10859417170286179, -0.014564434066414833, -0.04338790476322174, 0.07475563138723373, -0.0...
0.10457
This page shows how to run a replicated stateful application using a {{< glossary\_tooltip term\_id="statefulset" >}}. This application is a replicated MySQL database. The example topology has a single primary server and multiple replicas, using asynchronous row-based replication. {{< note >}} \*\*This is not a product...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md
main
kubernetes
[ -0.06464729458093643, -0.013102104887366295, 0.006660833954811096, -0.01435554213821888, -0.12311673909425735, -0.02590649016201496, 0.021771499887108803, -0.04907430335879326, 0.0138501962646842, 0.06149759888648987, -0.036227378994226456, -0.04650791734457016, 0.11292913556098938, -0.051...
0.083522
sure you have a dynamic PersistentVolume provisioner enabled, as mentioned in the [prerequisites](#before-you-begin). {{< /note >}} This manifest uses a variety of techniques for managing stateful Pods as part of a StatefulSet. The next section highlights some of these techniques to explain what happens as the Stateful...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md
main
kubernetes
[ 0.018930500373244286, -0.07547083497047424, 0.021216772496700287, 0.03173348680138588, -0.0650673657655716, -0.04739418625831604, -0.02185232937335968, 0.008343550376594067, 0.03858292102813721, 0.05354398861527443, -0.00412385119125247, 0.010081515647470951, 0.07249034941196442, -0.029114...
0.116109
cloned data files and determines if it's necessary to initialize MySQL replication on the replica. If so, it waits for `mysqld` to be ready and then executes the `CHANGE MASTER TO` and `START SLAVE` commands with replication parameters extracted from the XtraBackup clone files. Once a replica begins replication, it rem...
https://github.com/kubernetes/website/blob/main//content/en/docs/tasks/run-application/run-replicated-stateful-application.md
main
kubernetes
[ 0.0006220149807631969, -0.05902063846588135, 0.01975574716925621, 0.011873153038322926, -0.047399964183568954, -0.05793042108416557, 0.0026593771763145924, -0.004119619727134705, 0.05656898021697998, 0.05041883513331413, 0.0054660397581756115, 0.07942754775285721, 0.0914945974946022, -0.04...
0.100176
End of preview. Expand in Data Studio

Knowledge Base Documentation Dataset

A comprehensive, pre-processed and vectorized dataset containing documentation from 25+ popular open-source projects and cloud platforms, optimized for Retrieval-Augmented Generation (RAG) applications.

πŸ“Š Dataset Overview

This dataset aggregates technical documentation from leading open-source projects across cloud-native, DevOps, machine learning, and infrastructure domains. Each document has been chunked and embedded using the all-MiniLM-L6-v2 sentence transformer model.

Dataset ID: saidsef/knowledge-base-docs

🎯 Sources

The dataset includes documentation from the following projects:

Source Domain File Types
kubernetes Container Orchestration Markdown
terraform Infrastructure as Code MDX
kustomize Kubernetes Configuration Markdown
ingress-nginx Kubernetes Ingress Markdown
helm Package Management Markdown
external-secrets Secrets Management Markdown
prometheus Monitoring Markdown
argo-cd GitOps Markdown
istio Service Mesh Markdown
scikit-learn Machine Learning RST
cilium Networking & Security RST
redis In-Memory Database Markdown
grafana Observability Markdown
docker Containerization Markdown
linux Operating System RST
ckad-exercises Kubernetes Certification Markdown
aws-eks-best-practices AWS EKS Markdown
gcp-professional-services Google Cloud Markdown
external-dns DNS Management Markdown
google-kubernetes-engine GKE Markdown
consul Service Mesh Markdown
vault Secrets Management MDX
tekton CI/CD Markdown
model-context-protocol-mcp AI Context Protocol Markdown

πŸ“‹ Dataset Schema

Each row in the dataset contains the following fields:

Field Type Description
content string Chunked text content (500 words with 50-word overlap)
original_id int/float Reference to the original document ID
embeddings list[float] 384-dimensional embedding vector from all-MiniLM-L6-v2

πŸ”§ Dataset Creation Process

1. Data Collection

  • Shallow clone of 25+ GitHub repositories
  • Extraction of documentation files (.md, .mdx, .rst)

2. Content Processing

  • Removal of YAML frontmatter
  • Conversion to LLM-friendly markdown format
  • Stripping of scripts, styles, and media elements
  • Code block preservation with proper formatting

3. Text Chunking

  • Chunk size: 500 words
  • Overlap: 50 words
  • Ensures semantic continuity across chunks

4. Vectorization

  • Model: all-MiniLM-L6-v2
  • Embedding dimensions: 384
  • Normalization: Enabled for cosine similarity
  • Pre-computed embeddings for fast retrieval

5. Storage Format

  • Format: Apache Parquet
  • Compression: Optimized for query performance
  • File: knowledge_base.parquet

πŸ’» Usage Examples

Loading the Dataset

import pandas as pd
from datasets import load_dataset

# From Hugging Face Hub
dataset = load_dataset("saidsef/knowledge-base-docs")
df = dataset['train'].to_pandas()

# From local Parquet file
df = pd.read_parquet("knowledge_base.parquet", engine="pyarrow")

Semantic Search / RAG Implementation

import numpy as np
from sentence_transformers import SentenceTransformer

# Load the same model used for embedding
model = SentenceTransformer('all-MiniLM-L6-v2', trust_remote_code=True)

def retrieve(query, df, k=5):
    """Retrieve top-k most relevant documents using cosine similarity"""
    # Encode the query
    query_vec = model.encode(query, normalize_embeddings=True)
    
    # Convert embeddings to matrix
    embeddings_matrix = np.vstack(df['embeddings'].values)
    
    # Calculate cosine similarity
    norms = np.linalg.norm(embeddings_matrix, axis=1) * np.linalg.norm(query_vec)
    scores = np.dot(embeddings_matrix, query_vec) / norms
    
    # Add scores and sort
    df['score'] = scores
    return df.sort_values(by='score', ascending=False).head(k)

# Example query
results = retrieve("How do I configure an nginx ingress controller?", df, k=3)
print(results[['content', 'score']])

Building a RAG Pipeline

from transformers import pipeline

# Load a question-answering model
qa_pipeline = pipeline("question-answering", model="distilbert-base-cased-distilled-squad")

def rag_answer(question, df, k=3):
    """RAG: Retrieve relevant context and generate answer"""
    # Retrieve relevant documents
    context_rows = retrieve(question, df, k=k)
    context_text = " ".join(context_rows['content'].tolist())
    
    # Generate answer
    result = qa_pipeline(question=question, context=context_text)
    return result['answer'], context_rows

answer, sources = rag_answer("What is a Kubernetes pod?", df)
print(f"Answer: {answer}")

πŸ“ˆ Dataset Statistics

# Total chunks
print(f"Total chunks: {len(df)}")

# Average chunk length
df['chunk_length'] = df['content'].apply(lambda x: len(x.split()))
print(f"Average chunk length: {df['chunk_length'].mean():.0f} words")

# Embedding dimensionality
print(f"Embedding dimensions: {len(df['embeddings'].iloc[0])}")

πŸš€ Use Cases

  • RAG Applications: Build retrieval-augmented generation systems
  • Semantic Search: Find relevant documentation across multiple projects
  • Question Answering: Create technical support chatbots
  • Documentation Assistant: Help developers navigate complex documentation
  • Learning Resources: Train models on high-quality technical content
  • Comparative Analysis: Compare documentation approaches across projects

πŸ” Performance Considerations

  • Pre-computed embeddings: No need for runtime encoding
  • Optimized retrieval: Matrix multiplication for fast cosine similarity
  • Parquet format: Efficient storage and query performance
  • Chunk overlap: Better context preservation across boundaries

πŸ› οΈ Requirements

pandas>=2.0.0
numpy>=1.24.0
sentence-transformers>=2.0.0
pyarrow>=12.0.0
datasets>=2.0.0

πŸ“ License

This dataset is a compilation of documentation from various open-source projects. Each source maintains its original license:

  • Most projects use Apache 2.0 or MIT licenses
  • Refer to individual project repositories for specific licensing terms

🀝 Contributing

To add new sources or update existing documentation:

  1. Add the source configuration to the sites list
  2. Run the data collection pipeline
  3. Verify content processing and embedding quality
  4. Submit a pull request with updated dataset

πŸ“§ Contact

For questions, issues, or suggestions, please open an issue on the GitHub repository or contact the maintainer.

πŸ™ Acknowledgments

Special thanks to all the open-source projects that maintain excellent documentation, making this dataset possible.


Last Updated: December 2025
Version: 1.0
Embedding Model: all-MiniLM-L6-v2
Total Sources: 25+

Downloads last month
29