File size: 13,006 Bytes
3ebf13c
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3ebf13c
a9cede8
 
 
 
 
 
 
b18ec54
 
 
 
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b18ec54
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b18ec54
 
 
 
 
a9cede8
 
 
b18ec54
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
b18ec54
 
 
 
 
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b18ec54
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b18ec54
a9cede8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
---
license: apache-2.0
task_categories:
- feature-extraction
- text-retrieval
- question-answering
task_ids:
- semantic-similarity-scoring
- document-retrieval
- open-domain-qa
language:
- en
tags:
- embeddings
- vector-database
- rag
- retrieval-augmented-generation
- semantic-search
- knowledge-base
- accounting
size_categories:
- 1K<n<10K
annotations_creators:
- machine-generated
language_creators:
- found
multilinguality: monolingual
pretty_name: Accounting Vectorstore Dataset
source_datasets:
- original
---

# Vectorstore Dataset: Accounting

## Overview

This dataset contains pre-computed vector embeddings for the **accounting** domain, ready for use in Retrieval-Augmented Generation (RAG) applications, semantic search, and knowledge base systems. The embeddings are generated from high-quality source documents using state-of-the-art sentence transformers, making it easy to build production-ready RAG applications without the computational overhead of embedding generation.

### What This Knowledge Base Covers

This knowledge base covers core accounting concepts, principles, and practices. It includes topics such as financial statements, bookkeeping, GAAP/IFRS standards, auditing, tax fundamentals, and corporate finance. Use it to answer questions about accounting terminology, reporting standards, financial analysis, and practical accounting workflows.

## Key Features

-**Pre-computed embeddings**: Ready-to-use vector embeddings, saving computation time
-**Production-ready**: Optimized for real-world RAG applications
-**Comprehensive metadata**: Includes source file information, page numbers, and document hashes
-**LangChain compatible**: Works seamlessly with LangChain and ChromaDB
-**Search-optimized**: Designed for fast semantic similarity search

## What's Included

This dataset contains **4,838** text chunks from **2** source documents, each pre-embedded using the `sentence-transformers/all-MiniLM-L6-v2` model. Each chunk includes:
- **Text content**: The original document text
- **Embedding vector**: 384-dimensional float32 vector
- **Rich metadata**: Source file, page numbers, document hash, and more

## Dataset Details

### Dataset Summary

- **Domain**: `accounting`
- **Total Chunks**: 4,838
- **Total Documents**: 2
- **Database Size**: 52.78 MB (8 files)
- **Embedding Model**: `sentence-transformers/all-MiniLM-L6-v2`
- **Chunk Size**: 1000
- **Chunk Overlap**: 200

### Dataset Structure

The dataset contains the following columns:

- **id**: Unique identifier for each chunk
- **embedding**: Vector embedding (numpy array, dtype=float32)
- **document**: Original text content of the chunk
- **metadata**: JSON string containing metadata (file_name, file_hash, page_number, etc.)

### Embedding Model

This dataset uses embeddings from: `sentence-transformers/all-MiniLM-L6-v2`

## Usage

### Loading the Dataset

```python
from datasets import load_dataset

# Load the dataset
dataset = load_dataset("meetara-lab/vectorstore-accounting")

# Access the data
print(dataset["train"][0])
# Output:
# {
#     'id': '...',
#     'embedding': array([...], dtype=float32),
#     'document': '...',
#     'metadata': '{"file_name": "...", "page": 1, ...}'
# }
```

### Loading Back into ChromaDB

```python
from langchain_chroma import Chroma
from langchain_huggingface import HuggingFaceEmbeddings
from datasets import load_dataset
import json

# Load dataset
dataset = load_dataset("meetara-lab/vectorstore-accounting")["train"]

# Initialize ChromaDB
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
vectorstore = Chroma(
    persist_directory="./chroma_accounting",
    embedding_function=embeddings
)

# Add documents to ChromaDB
documents = []
metadatas = []
ids = []
embeddings_list = []

for item in dataset:
    ids.append(item["id"])
    embeddings_list.append(item["embedding"].tolist())
    documents.append(item["document"])
    metadatas.append(json.loads(item["metadata"]))

# Note: You'll need to use ChromaDB's Python client directly for custom embeddings
import chromadb
client = chromadb.PersistentClient(path="./chroma_accounting")
collection = client.create_collection(name="accounting")

collection.add(
    ids=ids,
    embeddings=embeddings_list,
    documents=documents,
    metadatas=metadatas
)
```

### Using with LangChain

```python
from langchain_chroma import Chroma
from langchain_huggingface import HuggingFaceEmbeddings

# Initialize retriever
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
vectorstore = Chroma(
    persist_directory="./chroma_accounting",
    embedding_function=embeddings
)

# Load from HF Hub first (see above), then use with LangChain
retriever = vectorstore.as_retriever()
results = retriever.invoke("your query here")
```

### Domain-Specific Usage Examples

This vectorstore is optimized for **Accounting** domain queries. Here are practical examples:

#### Example Queries

```python
from langchain_chroma import Chroma
from langchain_huggingface import HuggingFaceEmbeddings

# Load vectorstore (see "Loading Back into ChromaDB" above)
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
vectorstore = Chroma(
    persist_directory="./chroma_accounting",
    embedding_function=embeddings
)
retriever = vectorstore.as_retriever(search_kwargs={"k": 3})

# Example queries for accounting domain:
example_queries = [
    "What are the main components of a balance sheet?",
    "How to record journal entries for accruals?",
    "Explain GAAP vs IFRS accounting standards",
    "What is the double-entry bookkeeping system?",
    "How to prepare a cash flow statement?"
]

# Run a query
query = "What are the main components of a balance sheet?"
results = retriever.invoke(query)

# Display results
for i, doc in enumerate(results, 1):
    print(f"\nResult {i}:")
    print(f"  Source: {doc.metadata.get('file_name', 'Unknown')}")
    print(f"  Page: {doc.metadata.get('page', 'N/A')}")
    print(f"  Content: {doc.page_content[:200]}...")
```

#### Common Use Cases

This dataset is useful for:
- **Accounting concept lookup and explanation**
- **Financial reporting and standards reference**
- **Bookkeeping and journal entry guidance**
- **Audit and compliance information**
- **Corporate finance and analysis**

#### Real-World Example

```python
# Complete example: Query and use results
from langchain_chroma import Chroma
from langchain_huggingface import HuggingFaceEmbeddings

# 1. Initialize (after loading from HF Hub)
embeddings = HuggingFaceEmbeddings(model_name="sentence-transformers/all-MiniLM-L6-v2")
vectorstore = Chroma(
    persist_directory="./chroma_accounting",
    embedding_function=embeddings
)

# 2. Create retriever with relevance filtering
retriever = vectorstore.as_retriever(
    search_type="similarity",
    search_kwargs={
        "k": 5,  # Get top 5 most relevant results
        "score_threshold": 0.7  # Minimum similarity score
    }
)

# 3. Query the vectorstore
query = "How to record journal entries for accruals?"
docs = retriever.invoke(query)

# 4. Process results
for doc in docs:
    metadata = doc.metadata
    print(f"📄 File: {metadata.get('file_name', 'Unknown')}")
    print(f"📃 Page: {metadata.get('page', 'N/A')}")
    print(f"📝 Content: {doc.page_content[:300]}...\n")
```

## Dataset Statistics

### Content Statistics
- **Total Chunks**: 4,838
- **Total Documents**: 2
- **Average Chunks per Document**: 2419.0
- **Database Size**: 52.78 MB (8 files)

### Technical Specifications
- **Embedding Model**: `sentence-transformers/all-MiniLM-L6-v2` (384 dimensions)
- **Chunk Size**: 1000 characters
- **Chunk Overlap**: 200 characters
- **Format**: Parquet/Arrow (optimized for fast loading)

## Performance Considerations

### Loading Time
- Full dataset loads in ~5-15 seconds on average hardware
- Memory usage: ~7.1 MB for embeddings alone
- Recommended RAM: 2GB+ for full dataset operations

### Search Performance
- Typical query time: <100ms for similarity search
- Optimized for retrieval of top-k results (k=5-10)
- Works best with vector databases like ChromaDB, Pinecone, or Weaviate

## Citation

If you use this dataset, please cite:

```bibtex
@dataset{meetara_vectorstore_accounting,
  title={meeTARA Vectorstore: Accounting},
  author={meeTARA Lab},
  year={2024},
  url={https://huggingface.co/datasets/meetara-lab/vectorstore-accounting}
}
```

## Limitations and Considerations

- **Language**: This dataset is monolingual (English only)
- **Domain specificity**: Optimized for accounting domain queries
- **Embedding model**: Uses `sentence-transformers/all-MiniLM-L6-v2` - ensure compatibility if switching models
- **Update frequency**: Dataset reflects state at time of publication; source documents may have been updated

## Alternatives and Related Datasets

Looking for other domains? Check out the complete meeTARA Vectorstore collection:

### Healthcare Domain
- 🏥 `meetara-lab/vectorstore-general_health` - General Health (35,556 chunks)
- 💊 `meetara-lab/vectorstore-healthcare` - Healthcare (Available)
- 🧠 `meetara-lab/vectorstore-mental_health` - Mental Health (407 chunks)
- 💊 `meetara-lab/vectorstore-nutrition` - Nutrition (1,165 chunks)
- 💊 `meetara-lab/vectorstore-senior_health` - Senior Health (410 chunks)
- 👩 `meetara-lab/vectorstore-women_health` - Women Health (318 chunks)

### Education Domain
- 📚 `meetara-lab/vectorstore-academic_tutoring` - Academic Tutoring (64,845 chunks)
- 📚 `meetara-lab/vectorstore-education` - Education (Available)

### Other Domains
- 📁 `meetara-lab/vectorstore-ai_ml` - Ai Ml (131 chunks)
- 📁 `meetara-lab/vectorstore-bipolar_disorder` - Bipolar Disorder (65 chunks)
- 📁 `meetara-lab/vectorstore-chronic_conditions` - Chronic Conditions (1,882 chunks)
- 📁 `meetara-lab/vectorstore-economics` - Economics (2,195 chunks)
- 📁 `meetara-lab/vectorstore-emergency_care` - Emergency Care (52 chunks)
- 📁 `meetara-lab/vectorstore-medication_management` - Medication Management (161 chunks)
- 📁 `meetara-lab/vectorstore-parenting` - Parenting (460 chunks)
- 📁 `meetara-lab/vectorstore-preventive_care` - Preventive Care (253 chunks)
- 📁 `meetara-lab/vectorstore-programming` - Programming (171 chunks)
- 📁 `meetara-lab/vectorstore-publish` - Publish (Available)
- 📁 `meetara-lab/vectorstore-software_development` - Software Development (82 chunks)
- 📁 `meetara-lab/vectorstore-space_technology` - Space Technology (15 chunks)
- 📁 `meetara-lab/vectorstore-sports_recreation` - Sports Recreation (Available)
- 📁 `meetara-lab/vectorstore-stress_management` - Stress Management (26 chunks)
- 📁 `meetara-lab/vectorstore-tech_support` - Tech Support (2,920 chunks)

**🔗 View all meeTARA datasets**: [https://huggingface.co/meetara-lab](https://huggingface.co/meetara-lab)

**💡 Tip**: Combine multiple domain datasets for comprehensive multi-domain RAG applications!

## Maintenance and Updates

This dataset is maintained by the meeTARA Lab team. 

- **Last Updated**: 2026-02-07
- **Version**: 1.0
- **Update Policy**: Datasets are updated periodically as source documents are added or improved
- **Notifications**: Follow the repository to receive updates when new versions are published

For updates, bug reports, or feature requests, please visit our GitHub repository.

## License

This dataset is released under the **Apache 2.0 License**. This means you are free to:
- Use the dataset commercially and non-commercially
- Modify and create derivative works
- Distribute the dataset and modifications

Please see the full license text for complete terms.

## Citation

If you use this dataset in your research or applications, please cite it as:

```bibtex
@dataset{meetara_vectorstore_accounting,
  title={meeTARA Vectorstore: Accounting},
  author={meeTARA Lab},
  year={2024},
  url={https://huggingface.co/datasets/meetara-lab/vectorstore-accounting},
  license={apache-2.0},
  task={feature-extraction, text-retrieval, rag}
}
```

## Contact and Support

- **GitHub**: [meetara-lab/meetara-core](https://github.com/meetara-lab/meetara-core)
- **Hugging Face Profile**: [@meetara-lab](https://huggingface.co/meetara-lab)
- **Issues**: Report bugs or request features on [GitHub Issues](https://github.com/meetara-lab/meetara-core/issues)
- **Documentation**: Visit our repository for detailed documentation
- **Dataset Requests**: Want a new domain? [Open an issue](https://github.com/meetara-lab/meetara-core/issues) to request it!

## Contributing

We welcome contributions! If you'd like to:
- 🐛 Report bugs
- 💡 Suggest new domains
- 📝 Improve documentation
- 🔧 Contribute code

Please visit our [GitHub repository](https://github.com/meetara-lab/meetara-core).

---

**Made with ❤️ by the meeTARA Lab team**

**Part of the meeTARA Vectorstore Collection** - Empowering RAG applications with high-quality domain-specific embeddings.