Spaces:
Sleeping
Sleeping
File size: 2,755 Bytes
74c716c |
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 |
# MIT License
#
# Copyright (c) 2023 Victor Calderon
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions:
#
# The above copyright notice and this permission notice shall be included in
# all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
# SOFTWARE.
"""
Module containing the set of default variables of the project.
"""
# Option for saving the output data to disk
save_to_disk = True
# URL to the CICERO dataset
cicero_dataset_url = "https://raw.githubusercontent.com/hamzafarooq/maven-mlsystem-design-cohort-1/main/data/df_embed.csv" # noqa: E501
# Option for saving to disk
save_to_disk = True
# Name of the column that corresponds to the Document ID
document_id_colname = "_id"
# Name of the column that corresponds to the title of the document.
title_colname = "title"
# Name of the column that contains the content of the document.
content_colname = "content"
# Name of teh target column name that will contain the parsed / clean version
# of the document's content.
clean_content_colname = "clean_content"
# Name of the 'raw' dataset
raw_dataset_name = "cicero_raw_dataset"
# Name of the 'clean' dataset
clean_dataset_name = "cicero_clean_dataset"
# Name of the dataset with summaries
summaries_dataset_name = "cicero_dataset_with_summaries"
# Name of the dataaset with embeddings and FAISS index
dataset_faiss_embeddings_name = (
"cicero_dataset_with_embeddings_and_faiss_index"
)
# Name of the environment variable with the HuggingFace Token
hugging_face_token_name = "HUGGING_FACE_HUB_TOKEN"
# Name of the environment variable with the HuggingFace Username
hugging_face_username_name = "HUGGING_FACE_USERNAME"
# Name of the HuggingFace repository
hugging_face_repository_name = "cicero_synthesizer"
# Name of the FAISS Index
faiss_index_name = "cicero_faiss_index"
# Name of the column that contains the embedding in the dataset
embeddings_colname = "embeddings"
|