-
Notifications
You must be signed in to change notification settings - Fork 174
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated init.py and created a file for an example
- Loading branch information
1 parent
a5a41f4
commit 152a99e
Showing
2 changed files
with
12 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
from nomic.connectors import huggingface_connecter | ||
|
||
# Example source url: https://huggingface.co/datasets/allenai/quartz | ||
#Takes last two parts of url to get allenai/quartz | ||
atlas_dataset = huggingface_connecter.load('allenai/quartz') | ||
|
||
atlas_dataset.create_index(topic_model=True, embedding_model='NomicEmbed') | ||
|
||
print("Atlas dataset has been loaded and indexed successfully.") |