-
Notifications
You must be signed in to change notification settings - Fork 181
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
emptied init file,moved HF example usage and changed print statment t…
…o log
- Loading branch information
1 parent
152a99e
commit 2f783ca
Showing
3 changed files
with
4 additions
and
10 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +0,0 @@ | ||
from nomic.connectors import huggingface_connecter | ||
|
||
atlas_dataset = huggingface_connecter.load('aaa/bbb') | ||
|
||
atlas_dataset.create_index(topic_model=True, embedding_model='NomicEmbed') | ||
|
||
print("Atlas dataset has been loaded and indexed successfully.") | ||
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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
from nomic.connectors import huggingface_connecter | ||
import logging | ||
|
||
# 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.") | ||
logging.info("Atlas dataset has been loaded and indexed successfully.") |