Dataset Viewer
Auto-converted to Parquet Duplicate
chunk_id
stringlengths
10
10
page
int32
1
55
text
stringlengths
116
3.85k
embedding
listlengths
768
768
section
stringclasses
7 values
word_count
int32
21
592
estimated_tokens
int32
27
769
chunk_0000
1
2025 PEOPLE’S ENACTED B U D G E T AGENDA FOR PROSPERITY: Fulfilling the Needs and Aspirations of the Filipino People
[ -0.016593139618635178, 0.06981652975082397, -0.029007578268647194, -0.018392479047179222, 0.002751611638814211, -0.0027038990519940853, -0.024027416482567787, 0.011642892844974995, -0.0484439916908741, 0.038621582090854645, 0.0809359923005104, 0.020006190985441208, 0.01061396487057209, 0.0...
ENACTED B U D G E T
21
27
chunk_0001
2
The reproduction, copying, printing, and/or dissemination of this publication is allowed strictly for non-commercial use, i.e., for public information, educational, or personal purposes, and with proper acknowledgement of the Department of Budget and Management (DBM) and its corresponding sources. The DBM, however, can...
[ 0.019975541159510612, 0.0015005635796114802, -0.043284617364406586, 0.029021738097071648, 0.039849139750003815, 0.018639612942934036, 0.018786363303661346, -0.017062759026885033, -0.00501994276419282, 0.008808503858745098, 0.017023541033267975, 0.04050962254405022, 0.0826040655374527, -0.0...
STNETNOC FO ELBAT
105
136
chunk_0002
3
tegduB detcanE s’elpoeP 5202 STNETNOC FO ELBAT Foreword 2 The Enacted 2025 National Budget Agenda for Prosperity: 4 Fulfilling the Needs and Aspirations of the Filipino People Budget Dimensions By Sector (Traditional System) 6 By Sector (COFOG) 8 By Expense Class 10 By Recipient Unit 12 By Region 14 By Special Purpose ...
[ 0.00235829153098166, 0.07004333287477493, -0.021489590406417847, 0.021702995523810387, 0.02170855551958084, 0.014626134186983109, -0.00888779852539301, 0.008913039229810238, -0.04187694191932678, 0.012932838872075081, 0.03177009895443916, 0.05639631673693657, 0.06418924778699875, 0.0547727...
STNETNOC FO ELBAT
122
158
chunk_0003
4
Foreword Assalamu alaikum wa Rahmatullah wa Barakatuh. modernizing agriculture, expanding agribusiness, and revitalizing key industries to ensure food We are pleased to present the People’s Enacted security, increase productivity, and generate Budget, the simplified version of the FY employment. We are also prioritizin...
[ -0.0200052447617054, 0.04087144508957863, -0.03972199186682701, 0.018753474578261375, 0.04592353105545044, 0.006123749073594809, 0.01088961586356163, 0.006813258398324251, -0.049170270562171936, -0.010036204010248184, 0.06878448277711868, 0.036614399403333664, 0.050440672785043716, 0.09595...
null
470
611
chunk_0004
5
The FY 2025 budget addresses the needs and aspirations of the Filipino People, in line with our Philippine Development Plan, toward achieving our Agenda for Prosperity.
[ 0.006772649474442005, 0.07317003607749939, -0.027062896639108658, 0.0007238686084747314, 0.029373623430728912, -0.019559763371944427, -0.06628689914941788, -0.014650250785052776, -0.09735255688428879, 0.01781478151679039, 0.029627028852701187, -0.0069480715319514275, 0.06828974187374115, 0...
null
26
33
chunk_0005
6
THE ENACTED 2025 NATIONAL BUDGET Agenda for Prosperity: Fulfilling the Needs and Aspirations of the Filipino People The Philippine government remains committed to shaping a better future for the country. For 2025, the Php 6.326 trillion National Budget will focus on key areas like food security, healthcare, and infrast...
[ -0.00845012255012989, 0.08073516935110092, -0.0328160785138607, 0.01101757027208805, 0.028032269328832626, -0.004919851198792458, -0.030094893649220467, 0.0021386791486293077, -0.07498648017644882, 0.02980281598865986, 0.05847205966711044, 0.03266134485602379, 0.030792519450187683, 0.07165...
null
218
283
chunk_0006
7
Highlights of the President’s Veto Direct Veto Php 26.1 billion Php 168.2 billion Programs and projects of Unprogrammed Department of Public Works Appropriations and Highways Conditional Implementation Strict Adherence to Laws, Policies, Rules, and Regulations β€’ Implementation of National Programs (Ayuda sa Kapos ang K...
[ 0.0013917565811425447, 0.029950836673378944, -0.0033517011906951666, 0.016912955790758133, 0.01899891160428524, 0.029558254405856133, -0.06228472664952278, 0.03255957365036011, -0.00311065511777997, 0.004524888936430216, 0.03597184270620346, -0.017594676464796066, 0.034765370190143585, 0.0...
null
103
133
chunk_0007
8
BUDGET DIMENSIONS Budget Dimensions By Sector (Traditional System) The 2025 National Budget is designed to propel the government’s Agenda for Prosperity by prioritizing key areas, ensuring that every allocation is aimed at sustaining progress and responding to the country’s most pressing needs. Social Services 4.1% 20...
[ 0.0015100958989933133, 0.07038755714893341, -0.011122587136924267, 0.03393113985657692, 0.037477970123291016, -0.003371818922460079, -0.013682707212865353, -0.012785326689481735, -0.06953272968530655, 0.0004457511240616441, 0.04698656499385834, -0.012633070349693298, 0.04298505187034607, 0...
BUDGET DIMENSIONS
203
263
chunk_0008
9
General Public Services 19.4% 2025: Php 1.073 T 2024: Php 898.6 B To maintain public order and safety in the country, Php 1.073 trillion or 17.0% of the National Budget will be allocated to support general government activities and other governance and regulatory services, among others. Key Items β€’ Public Order and Sa...
[ 0.03250439465045929, 0.09099608659744263, -0.01770993322134018, 0.02180558629333973, 0.033705100417137146, 0.0034523264039307833, -0.06280681490898132, -0.026833804324269295, -0.045936696231365204, 0.012884018011391163, 0.0434948168694973, -0.019037585705518723, 0.025556541979312897, 0.080...
null
192
249
chunk_0009
10
BUDGET DIMENSIONS Budget Dimensions By Sector (COFOG) The 2025 National Budget is also categorized using the Classification of the Functions of Government (COFOG) to provide a clearer picture of national priorities and how public resources are used based on their purpose and benefits to society. Sectors that Benefit So...
[ -0.0008307144744321704, 0.06303587555885315, 0.009650121442973614, 0.03429782763123512, 0.013803688809275627, 0.0043967547826468945, 0.0031133645679801702, -0.014491656795144081, -0.041806139051914215, 0.005803318228572607, 0.016719533130526543, 0.015877872705459595, 0.04727576673030853, 0...
BUDGET DIMENSIONS
218
283
chunk_0010
11
Sectors that Benefit Individuals Directly 2025: Php 942.0 B β€’ Pre-primary and primary education Php 330.7 B 2024: Php 928.2 B β€’ Secondary education Php 307.8 B Education β€’ Tertiary education Php 120.5 B β€’ Survivors (Gender Development, Php 96.9 B 2025: Php 722.8 B Internally Displaced Persons and Disaster Relief Assist...
[ -0.029574817046523094, 0.05486687272787094, -0.03599647432565689, 0.03566056862473488, 0.010712322778999805, -0.003758384846150875, 0.018977073952555656, -0.0009854986565187573, -0.030515724793076515, 0.013600582256913185, 0.04051674157381058, 0.02340543456375599, 0.05537830665707588, 0.05...
null
191
248
End of preview. Expand in Data Studio

Philippine Budget 2025 - Vector Embeddings (all-mpnet-base-v2)

Dataset Description

This dataset contains vector embeddings of the 2025 People's Budget of the Philippines, a citizen-friendly overview of the PHP 6.326 trillion national budget published by the Department of Budget and Management (DBM).

Source Document

These embeddings are based on the 2025 People's Enacted Budget (English version, revised as of April 22, 2025).

Direct Download Link: 2025 People's Enacted Budget PDF

This 100+ page PDF provides a citizen-friendly overview of the PHP 6.326 trillion national budget, including:

  • Sector breakdowns
  • Priorities like Education (PHP 977.6B)
  • Infrastructure (PHP 1.507T)
  • Health, Social Protection, Food Security, and more

A Filipino version is also available via the DBM website.

Model Information

  • Embedding Model: all-mpnet-base-v2
  • Embedding Dimensions: 768
  • Description: High quality (768 dimensions)
  • Total Embeddings: 55
  • Library: sentence-transformers
  • Generated: 2025-10-18T11:41:09.087275

Quality Metrics

  • Normalization: L2 normalized (all vectors have norm = 1.0)
  • Sparsity: 0.39% (very dense embeddings)
  • Dimension Efficiency: 80.04%
  • Processing Speed: 18.12 seconds for 55 chunks

Dataset Structure

Data Fields

Field Type Description
chunk_id string Unique identifier for each chunk (e.g., "chunk_0000")
page int32 Page number in the original document (1-55)
text string Original text content from the budget document
embedding float32[768] Vector embedding (768 dimensions)
section string Document section (e.g., "SPENDING PRIORITIES")
word_count int32 Number of words in the chunk
estimated_tokens int32 Estimated token count for the chunk

Data Splits

This dataset contains a single split (train) with 55 examples.

Document Coverage

The embeddings cover all major sections of the Philippine Budget 2025:

  • βœ… Budget Dimensions: By sector (traditional and COFOG), expense class, recipient unit, region, special purpose fund, appropriation source
  • βœ… Spending Priorities: Education, Health, Social Protection, Food Security, Industry/Workforce/Tourism, Science & Technology, Infrastructure, Peace & Order, Governance, Environment
  • βœ… Financing: The 2025 Budget and the Economy, Fiscal Program, Revenues, Borrowings
  • βœ… Budget Basics: Budget Cycle, Glossary, Ask Your Government, Off-Budget Accounts

Usage

Load the Dataset

from datasets import load_dataset

# Load the dataset
dataset = load_dataset("pageman/philippine-budget-2025-embeddings-mpnet")

# Access embeddings
embeddings = dataset['train']['embedding']
texts = dataset['train']['text']
pages = dataset['train']['page']

print(f"Loaded {len(embeddings)} embeddings with {len(embeddings[0])} dimensions")

Semantic Search Example

from datasets import load_dataset
from sentence_transformers import SentenceTransformer
import numpy as np
from sklearn.metrics.pairwise import cosine_similarity

# Load dataset and model
dataset = load_dataset("pageman/philippine-budget-2025-embeddings-mpnet")
model = SentenceTransformer('all-mpnet-base-v2')

# Get embeddings
doc_embeddings = np.array(dataset['train']['embedding'])
texts = dataset['train']['text']

# Search
query = "What is the education budget allocation?"
query_embedding = model.encode(query)
similarities = cosine_similarity([query_embedding], doc_embeddings)[0]

# Get top 5 results
top_indices = np.argsort(similarities)[-5:][::-1]
for idx in top_indices:
    print(f"Score: {similarities[idx]:.4f}")
    print(f"Page: {dataset['train']['page'][idx]}")
    print(f"Text: {texts[idx][:200]}...")
    print()

Use with ChromaDB

import chromadb
from datasets import load_dataset

# Load dataset
dataset = load_dataset("pageman/philippine-budget-2025-embeddings-mpnet")

# Initialize ChromaDB
client = chromadb.Client()
collection = client.create_collection("philippine_budget")

# Add to collection
collection.add(
    ids=[item['chunk_id'] for item in dataset['train']],
    embeddings=[item['embedding'] for item in dataset['train']],
    documents=[item['text'] for item in dataset['train']],
    metadatas=[{'page': item['page'], 'section': item['section']} for item in dataset['train']]
)

# Query
results = collection.query(
    query_texts=["infrastructure spending priorities"],
    n_results=5
)
print(results)

Use with LangChain (RAG)

from langchain.vectorstores import Chroma
from langchain.embeddings import HuggingFaceEmbeddings
from datasets import load_dataset

# Load dataset
dataset = load_dataset("pageman/philippine-budget-2025-embeddings-mpnet")

# Create embeddings
embeddings = HuggingFaceEmbeddings(model_name='all-mpnet-base-v2')

# Create vector store
texts = dataset['train']['text']
metadatas = [{'page': p, 'section': s} for p, s in zip(
    dataset['train']['page'], 
    dataset['train']['section']
)]

vectorstore = Chroma.from_texts(
    texts=texts,
    embedding=embeddings,
    metadatas=metadatas
)

# Use as retriever
retriever = vectorstore.as_retriever(search_kwargs={"k": 5})
docs = retriever.get_relevant_documents("healthcare funding")

Model Comparison

Model Dimensions Speed Quality File Size Best For
all-MiniLM-L6-v2 384 ⭐⭐⭐⭐⭐ Fast ⭐⭐⭐⭐ Good 0.70 MB General use, real-time search
all-mpnet-base-v2 768 ⭐⭐⭐ Moderate ⭐⭐⭐⭐⭐ Excellent 1.31 MB High-precision, research

When to Use This Model

Use all-mpnet-base-v2 when:

  • βœ… You need maximum accuracy and semantic understanding
  • βœ… You're doing complex document analysis
  • βœ… Accuracy is more important than speed
  • βœ… You're building research or analytical tools
  • βœ… You need fine-grained similarity detection

Use Cases

1. Semantic Search Portal

Build a citizen-friendly search interface for budget information:

query = "How much is allocated for public schools?"
# Returns relevant budget sections with similarity scores

2. Budget Q&A Chatbot (RAG)

Create an AI assistant that answers budget questions using retrieval-augmented generation.

3. Policy Analysis Tool

Enable researchers to quickly find and analyze budget allocations across sectors and regions.

4. Budget Comparison System

Compare spending priorities across different fiscal years or government departments.

5. Transparency Dashboard

Build interactive visualizations with semantic filtering and exploration.

Source Document Details

  • Title: AGENDA FOR PROSPERITY: Fulfilling the Needs and Aspirations of the Filipino People
  • Publisher: Department of Budget and Management (DBM), Philippines
  • Fiscal Year: 2025
  • Total Budget: PHP 6.326 trillion (22.1% of GDP)
  • Document Type: People's Enacted Budget (Citizen-friendly version)
  • Pages: 55
  • Last Revised: April 22, 2025
  • Languages Available: English, Filipino

Key Budget Highlights

  • Education: PHP 977.6 billion (highest allocation)
  • Infrastructure: PHP 1.507 trillion
  • Health: Substantial allocations for universal healthcare
  • Social Protection: Programs for vulnerable sectors
  • Food Security: Agricultural and agribusiness support

Technical Specifications

Chunking Strategy

  • Method: Semantic units with 20% overlap
  • Target Tokens: ~1000 per chunk
  • Average Words: 203.7 per chunk
  • Average Tokens: 264.3 per chunk

Embedding Properties

  • Normalization: L2 normalized (optimal for cosine similarity)
  • Value Range: Approximately [-0.12, 0.12]
  • Distribution: Symmetric around zero
  • Sparsity: <0.5% (very dense)

Citation

If you use this dataset in your research or application, please cite:

@dataset{philippine_budget_2025_embeddings_mpnet,
  title={Philippine Budget 2025 - Vector Embeddings (all-mpnet-base-v2)},
  author={Department of Budget and Management, Philippines},
  year={2025},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/datasets/pageman/philippine-budget-2025-embeddings-mpnet}}
}

License

This dataset is released under the Creative Commons Attribution 4.0 International (CC BY 4.0) license, consistent with the source document's public information and educational use policy.

Related Resources

Contact & Support

  • Budget Questions: Visit DBM website
  • Technical Issues: Open an issue on this dataset's discussion page
  • Dataset Maintainer: @pageman

Acknowledgments

  • Department of Budget and Management (DBM), Philippines for publishing the source document
  • Sentence Transformers team for the embedding models
  • Hugging Face for dataset hosting infrastructure

Dataset Version: 1.0
Last Updated: 2025-10-18
Status: βœ… Production Ready

Downloads last month
16

Space using pageman/philippine-budget-2025-embeddings-mpnet 1