ajosh0504 commited on
Commit
6984e8f
·
verified ·
1 Parent(s): 78cfc97

Remove embeddings and keep only the chunked docs

Browse files
README.md CHANGED
@@ -13,7 +13,7 @@ size_categories:
13
 
14
  ## Overview
15
 
16
- This dataset consists of chunked and embedded versions of a small subset of MongoDB's technical documentation. It contains 795 chunks from 498 documentation pages, sampled from 50 documentation sources.
17
 
18
  ## Dataset Structure
19
 
@@ -26,9 +26,8 @@ The dataset consists of the following fields:
26
  - url: Link to the documentation page.
27
  - title: Title of the documentation page.
28
  - text: Content of the chunk in Markdown format.
29
- - embedding: The embedding of the chunk's content, created using Voyage AI's [voyage-4-large](https://www.mongodb.com/docs/voyageai/models/text-embeddings/) model with 1024 dimensions.
30
 
31
- Pages were split into chunks of up to ~2,000 tokens at Markdown heading boundaries. Because the Voyage 4 models share an embedding space, you can embed queries for this dataset with `voyage-4-large`, `voyage-4`, or `voyage-4-lite`.
32
 
33
  ## Usage
34
 
@@ -49,7 +48,7 @@ from pymongo import MongoClient
49
  client = MongoClient(os.environ["MONGODB_URI"])
50
  collection = client["your_database_name"]["mongodb_docs"]
51
 
52
- dataset = load_dataset("MongoDB/mongodb-docs-voyage-4-large", split="train")
53
  collection.insert_many(dataset.to_list())
54
 
55
  print(f"Ingested {len(dataset)} documents")
 
13
 
14
  ## Overview
15
 
16
+ This dataset consists of chunked versions of a small subset of MongoDB's technical documentation. It contains 795 chunks from 498 documentation pages, sampled from 50 documentation sources.
17
 
18
  ## Dataset Structure
19
 
 
26
  - url: Link to the documentation page.
27
  - title: Title of the documentation page.
28
  - text: Content of the chunk in Markdown format.
 
29
 
30
+ Pages were split into chunks of up to ~2,000 tokens at Markdown heading boundaries.
31
 
32
  ## Usage
33
 
 
48
  client = MongoClient(os.environ["MONGODB_URI"])
49
  collection = client["your_database_name"]["mongodb_docs"]
50
 
51
+ dataset = load_dataset("MongoDB/mongodb-docs-chunked", split="train")
52
  collection.insert_many(dataset.to_list())
53
 
54
  print(f"Ingested {len(dataset)} documents")
mongodb_docs_chunked.json ADDED
The diff for this file is too large to render. See raw diff
 
mongodb_docs_voyage_4_large.json DELETED
@@ -1,3 +0,0 @@
1
- version https://git-lfs.github.com/spec/v1
2
- oid sha256:7985d43559f567db1cc0175d0e7b8a4cf86b2c7fc69e9c1541847ffab63875f9
3
- size 22292835