content large_stringlengths 3 20.5k | url large_stringlengths 53 192 | branch large_stringclasses 4
values | source large_stringclasses 52
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.0498497374355793,
0.10505707561969757,
0.10544703155755997,
0.016172969713807106,
0.08123256266117096,
0.010598997585475445,
-0.002077185083180666,
-0.08193515986204147,
0.13194359838962555,
0.0043164086528122425,
-0.026886099949479103,
-0.009028604254126549,
-0.016197161749005318,
-0.0... | 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.0914347767829895,
0.001403807196766138,
0.02888375148177147,
-0.028142878785729408,
0.12125737220048904,
0.03750996291637421,
-0.000917640223633498,
0.05314803496003151,
0.019242767244577408,
0.003359930356964469,
-0.04950698837637901,
0.04562964662909508,
0.06249512732028961,
-0.067008... | 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.04791082814335823,
0.05966627970337868,
0.05144441872835159,
0.048692863434553146,
0.09288551658391953,
-0.018382875248789787,
0.014205179177224636,
-0.01476538460701704,
0.0610562227666378,
0.026186712086200714,
-0.0017974535003304482,
0.03441375494003296,
0.04089983552694321,
0.027960... | 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.0063347769901156425,
0.11115630716085434,
0.0419592410326004,
-0.04314371943473816,
0.07602422684431076,
0.032256148755550385,
0.008192319422960281,
-0.0060872882604599,
0.01775083690881729,
-0.004539657384157181,
0.035478461533784866,
0.025075696408748627,
0.06368105858564377,
-0.04295... | 0.011426 |
The CRI is a plugin interface which enables the kubelet to use a wide variety of container runtimes, without having a need to recompile the cluster components. You need a working {{}} on each Node in your cluster, so that the {{< glossary\_tooltip text="kubelet" term\_id="kubelet" >}} can launch {{< glossary\_tooltip t... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/cri.md | main | kubernetes | [
-0.027665434405207634,
0.011016088537871838,
0.05013225972652435,
-0.017530987039208412,
-0.06655406951904297,
0.01133535336703062,
0.03206132724881172,
-0.02322741225361824,
0.02957109920680523,
-0.03881535306572914,
-0.01678909920156002,
-0.154177725315094,
0.009258157573640347,
-0.00892... | 0.08718 |
This page describes the resources available to Containers in the Container environment. ## Container environment The Kubernetes Container environment provides several important resources to Containers: \* A filesystem, which is a combination of an [image](/docs/concepts/containers/images/) and one or more [volumes](/do... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/container-environment.md | main | kubernetes | [
0.032320912927389145,
0.03135209530591965,
0.011247474700212479,
0.01753338985145092,
0.004818483721464872,
-0.030037015676498413,
0.008622875437140465,
0.009592761285603046,
0.05116758495569229,
-0.005062851123511791,
-0.056335605680942535,
-0.054907623678445816,
-0.01576259359717369,
-0.... | 0.171631 |
A container image represents binary data that encapsulates an application and all its software dependencies. Container images are executable software bundles that can run standalone and that make very well-defined assumptions about their runtime environment. You typically create a container image of your application an... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
0.015981029719114304,
0.040675416588783264,
0.06427749991416931,
-0.030323566868901253,
0.052477408200502396,
-0.01006996352225542,
0.01588323898613453,
0.003267986699938774,
0.0710730254650116,
0.007801072206348181,
0.024182241410017014,
-0.048378344625234604,
-0.03356726095080376,
-0.015... | 0.147546 |
image is pulled only if it is not already present locally. `Always` : every time the kubelet launches a container, the kubelet requests the {{< glossary\_tooltip text="container runtime" term\_id="container-runtime" >}} to pull the image. The container runtime contacts the registry, resolves the image tag or name to a ... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.021173683926463127,
0.07805770635604858,
0.07332094758749008,
-0.005383054260164499,
-0.003269206965342164,
-0.04545383155345917,
0.0313907265663147,
-0.03647955134510994,
0.12082227319478989,
-0.0173836350440979,
0.006181512959301472,
-0.06296369433403015,
-0.058355141431093216,
-0.032... | 0.045287 |
changes. For example, if you create a Deployment with an image whose tag is \_not\_ `:latest`, and later update that Deployment's image to a `:latest` tag, the `imagePullPolicy` field will \_not\_ change to `Always`. You must manually change the pull policy of any object after its initial creation. {{< /note >}} #### R... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.014235883951187134,
0.02944548986852169,
0.07058097422122955,
0.0360710471868515,
0.025860661640763283,
-0.040463887155056,
-0.01634679175913334,
-0.02489709109067917,
0.02869223989546299,
0.06479570269584656,
0.05038764700293541,
-0.02200026996433735,
0.006816380191594362,
-0.000491533... | 0.043992 |
no limit on the maximum number of images being pulled at the same time. If you would like to limit the number of parallel image pulls, you can set the field `maxParallelImagePulls` in the kubelet configuration. With `maxParallelImagePulls` set to \_n\_, only \_n\_ images can be pulled at the same time, and any image pu... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.01603154093027115,
0.004531507845968008,
0.029414081946015358,
-0.07116872072219849,
-0.12859222292900085,
-0.023140916600823402,
-0.05871148779988289,
-0.016163833439350128,
0.055737145245075226,
-0.03769271448254585,
-0.0023824169766157866,
-0.06930280476808548,
-0.0005078426911495626,
... | 0.086253 |
Image from a Private Registry](/docs/tasks/configure-pod-container/pull-image-private-registry) task. That example uses a private registry in Docker Hub. ### Kubelet credential provider for authenticated image pulls {#kubelet-credential-provider} You can configure the kubelet to invoke a plugin binary to dynamically fe... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.0727764144539833,
0.035515524446964264,
0.014501101337373257,
-0.002957005752250552,
-0.04723707213997841,
0.009784635156393051,
0.06011601537466049,
0.0353415310382843,
0.041386108845472336,
0.02024911716580391,
-0.03328718990087509,
-0.13810308277606964,
0.03891026973724365,
0.0373209... | 0.047431 |
>}} ### Ensure image pull credential verification {#ensureimagepullcredentialverification} {{< feature-state feature\_gate\_name="KubeletEnsureSecretPulledImages" >}} If the `KubeletEnsureSecretPulledImages` feature gate is enabled for your cluster, Kubernetes will validate image credentials for every image that requir... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.0008739253971725702,
-0.008547068573534489,
0.052141111344099045,
0.010699170641601086,
-0.0058621796779334545,
0.007697334513068199,
-0.0016517455223947763,
-0.03603513538837433,
0.05224741995334625,
0.026492837816476822,
0.029101496562361717,
-0.07170435786247253,
0.04349394142627716,
... | 0.070671 |
{{< note >}} Pods can only reference image pull secrets in their own namespace, so this process needs to be done one time per namespace. {{< /note >}} #### Referring to `imagePullSecrets` on a Pod Now, you can create pods which reference that secret by adding the `imagePullSecrets` section to a Pod definition. Each ite... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
-0.01607988402247429,
0.0011726851807907224,
0.02632850967347622,
0.027093084529042244,
0.012031330727040768,
-0.04375285282731056,
0.03917913883924484,
0.033684518188238144,
0.06591521948575974,
0.03451470658183098,
0.04157720506191254,
-0.08709990978240967,
0.013488596305251122,
0.033793... | 0.103822 |
{{% heading "whatsnext" %}} \* Read the [OCI Image Manifest Specification](https://github.com/opencontainers/image-spec/blob/main/manifest.md). \* Learn about [container image garbage collection](/docs/concepts/architecture/garbage-collection/#container-image-garbage-collection). \* Learn more about [pulling an Image f... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/images.md | main | kubernetes | [
0.07394125312566757,
0.10211585462093353,
0.04668712615966797,
0.004242740571498871,
0.10765846073627472,
-0.047379907220602036,
0.0749918520450592,
0.08514631539583206,
0.0021952239330857992,
-0.033685438334941864,
0.013227179646492004,
-0.026245789602398872,
0.02314639836549759,
0.042156... | 0.198101 |
{{< feature-state for\_k8s\_version="v1.20" state="stable" >}} This page describes the RuntimeClass resource and runtime selection mechanism. RuntimeClass is a feature for selecting the container runtime configuration. The container runtime configuration is used to run a Pod's containers. ## Motivation You can set a di... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/runtime-class.md | main | kubernetes | [
-0.017737288028001785,
0.06200094521045685,
0.0488973893225193,
0.010263761505484581,
0.01875394769012928,
-0.020345384255051613,
-0.05485442280769348,
0.041135549545288086,
-0.06860783696174622,
-0.05319713428616524,
-0.029639000073075294,
-0.039163101464509964,
-0.024873068556189537,
-0.... | 0.170663 |
table](https://github.com/cri-o/cri-o/blob/master/docs/crio.conf.5.md#crioruntime-table): ``` [crio.runtime.runtimes.${HANDLER\_NAME}] runtime\_path = "${PATH\_TO\_BINARY}" ``` See CRI-O's [config documentation](https://github.com/cri-o/cri-o/blob/master/docs/crio.conf.5.md) for more details. ## Scheduling {{< feature-... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/runtime-class.md | main | kubernetes | [
-0.013055744580924511,
0.005185756366699934,
0.007694688625633717,
0.04496648907661438,
0.03094787895679474,
-0.02133689634501934,
0.008182357996702194,
0.012867572717368603,
-0.08420559763908386,
-0.038370974361896515,
-0.05241502448916435,
-0.08391676098108292,
0.007432917598634958,
0.00... | 0.252191 |
This page will discuss containers and container images, as well as their use in operations and solution development. The word \_container\_ is an overloaded term. Whenever you use the word, check whether your audience uses the same definition. Each container that you run is repeatable; the standardization from having d... | https://github.com/kubernetes/website/blob/main/content/en/docs/concepts/containers/_index.md | main | kubernetes | [
0.017827803269028664,
0.01544955838471651,
0.08671370893716812,
-0.012614342384040356,
0.05918114259839058,
-0.04132761061191559,
0.017044538632035255,
-0.03767203167080879,
0.08201420307159424,
0.016900548711419106,
0.013652418740093708,
0.009253328666090965,
0.005324957892298698,
-0.0249... | 0.201077 |
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:
- Add the source configuration to the
siteslist - Run the data collection pipeline
- Verify content processing and embedding quality
- 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
- 122