Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decodingai-magazine/llm-twin-course
/ functions
Functions
323 in github.com/decodingai-magazine/llm-twin-course
⨍
Functions
323
◇
Types & classes
158
↳
Endpoints
5
↓ 1 callers
Method
create_template
(self)
src/bonus_superlinked_rag/llm/prompt_templates.py:43
↓ 1 callers
Method
create_template
(self, keep_top_k: int)
src/bonus_superlinked_rag/llm/prompt_templates.py:60
↓ 1 callers
Method
create_vector_collection
(self, collection_name: str)
src/core/db/qdrant.py:34
↓ 1 callers
Function
delete_endpoint_and_config
Deletes an AWS SageMaker endpoint and its associated configuration. Args: endpoint_name (str): The name of the SageMaker endpoint to dele
src/inference_pipeline/aws/delete_sagemaker_endpoint.py:17
↓ 1 callers
Method
download_dataset
(self, dataset_id: str, split: str = "train")
src/training_pipeline/finetune.py:33
↓ 1 callers
Method
download_dataset
(self, dataset_id: str, split: str = "train")
src/training_pipeline/download_dataset.py:21
↓ 1 callers
Method
download_file
(self, bucket_name: str | None, object_name: str, download_path: str)
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/resource_handler.py:40
↓ 1 callers
Method
embedd
(self, data_model: DataModel)
src/feature_pipeline/data_logic/embedding_data_handlers.py:20
↓ 1 callers
Method
ensure_folder
(self)
src/bonus_superlinked_rag/server/runner/executor/app/service/file_handler_service.py:21
↓ 1 callers
Method
extract
(self, link: str, **kwargs)
src/data_crawling/crawlers/base.py:14
↓ 1 callers
Function
extract_substrings
( text: str, min_length: int = 1000, max_length: int = 2000 )
src/feature_pipeline/generate_dataset/chunk_documents.py:12
↓ 1 callers
Method
fetch_all_cleaned_content
(self, collection_name: str)
src/feature_pipeline/generate_dataset/generate.py:198
↓ 1 callers
Function
finetune
( model_name: str, output_dir: str, dataset_id: str, max_seq_length: int = 2048, load_in_4
src/training_pipeline/finetune.py:130
↓ 1 callers
Method
format_batch
(cls, context_msg: str, data_points: list, start_index: int)
src/feature_pipeline/generate_dataset/generate.py:63
↓ 1 callers
Method
format_data
(cls, data_points: list, is_example: bool, start_index: int)
src/feature_pipeline/generate_dataset/generate.py:53
↓ 1 callers
Method
format_prompt
( self, system_prompt, prompt_template: PromptTemplate, prompt_template_variab
src/inference_pipeline/llm_twin.py:84
↓ 1 callers
Method
format_prompt
( cls, inference_posts: list, data_type: str, start_index: int )
src/feature_pipeline/generate_dataset/generate.py:70
↓ 1 callers
Method
generate_training_data
( self, collection_name: str, data_type: str, batch_size: int = 3 )
src/feature_pipeline/generate_dataset/generate.py:93
↓ 1 callers
Method
get_bucket
(self)
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/resource_handler.py:43
↓ 1 callers
Function
get_clean_collection
(data_type: str)
src/feature_pipeline/data_flow/stream_output.py:96
↓ 1 callers
Method
get_collection
(self, collection_name: str)
src/core/db/qdrant.py:26
↓ 1 callers
Method
get_crawler
(self, url: str)
src/data_crawling/dispatcher.py:17
↓ 1 callers
Method
get_database
(self)
src/core/db/mongo.py:29
↓ 1 callers
Method
get_registry
(app_module_path: str)
src/bonus_superlinked_rag/server/runner/executor/app/util/registry_loader.py:25
↓ 1 callers
Method
get_resource_handler
(app_location: AppLocation)
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/resource_handler_factory.py:26
↓ 1 callers
Method
get_system_prompt
(cls, data_type: str)
src/feature_pipeline/generate_dataset/generate.py:44
↓ 1 callers
Method
get_task_status_by_name
(self, name: str)
src/bonus_superlinked_rag/server/runner/executor/app/service/data_loader.py:68
↓ 1 callers
Function
get_vector_collection
(data_type: str)
src/feature_pipeline/data_flow/stream_output.py:107
↓ 1 callers
Function
handler
(event, context: LambdaContext | None = None)
src/data_crawling/main.py:18
↓ 1 callers
Function
has_recency_space
(indices: Sequence[Index])
src/bonus_superlinked_rag/server/runner/executor/app/middleware/lifespan_event.py:92
↓ 1 callers
Function
inference
( model: Any, tokenizer: Any, prompt: str = "Write a paragraph to introduce supervised fine-tuning
src/training_pipeline/finetune.py:236
↓ 1 callers
Method
initialize_gcs_client
Initialize the GCS client, with fallback to credentials file if necessary.
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/gcs/gcs_resource_handler.py:29
↓ 1 callers
Method
initialize_s3_client
Initialize the S3 client, with fallback to credentials file if necessary.
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/s3/s3_resource_handler.py:36
↓ 1 callers
Function
insert_data_to_mongodb
Insert data into a MongoDB collection. :param uri: MongoDB URI :param database_name: Name of the database :param collection_name: Na
src/data_cdc/test_cdc.py:4
↓ 1 callers
Function
load_model
( model_name: str, max_seq_length: int, load_in_4bit: bool, lora_rank: int, lora_alpha: in
src/training_pipeline/finetune.py:98
↓ 1 callers
Method
login
(self)
src/data_crawling/crawlers/linkedin.py:144
↓ 1 callers
Function
main
()
src/inference_pipeline/aws/deploy_sagemaker_endpoint.py:5
↓ 1 callers
Function
main
()
src/inference_pipeline/evaluation/evaluate_rag.py:41
↓ 1 callers
Function
main
()
src/inference_pipeline/evaluation/evaluate_monitoring.py:22
↓ 1 callers
Function
main
()
src/inference_pipeline/evaluation/evaluate.py:31
↓ 1 callers
Function
main
Parse arguments and execute the docker-compose command.
src/bonus_superlinked_rag/server/tools/deploy.py:133
↓ 1 callers
Method
notify_executor
Notify the executor API about the new version by making a PUT request to /reload.
src/bonus_superlinked_rag/server/runner/poller/app/resource_handler/resource_handler.py:82
↓ 1 callers
Method
parse
Parse the application location URL to extract the storage type, bucket, and path.
src/bonus_superlinked_rag/server/runner/poller/app/app_location_parser/app_location_parser.py:52
↓ 1 callers
Method
parse_app_location_config
Parse the configuration from the YAML file.
src/bonus_superlinked_rag/server/runner/poller/app/poller/poller.py:40
↓ 1 callers
Method
persist
(self)
src/bonus_superlinked_rag/server/runner/executor/app/service/persistence_service.py:36
↓ 1 callers
Method
push_to_comet
( self, train_test_split: tuple[list[dict], list[dict]], data_type: str, colle
src/feature_pipeline/generate_dataset/generate.py:155
↓ 1 callers
Method
read_json
(self, filename: str)
src/feature_pipeline/generate_dataset/file_handler.py:7
↓ 1 callers
Method
register_data_loader_sources
(self, data_loader_sources: Sequence[DataLoaderSource])
src/bonus_superlinked_rag/server/runner/executor/app/service/data_loader.py:43
↓ 1 callers
Function
register_dependencies
()
src/bonus_superlinked_rag/server/runner/executor/app/dependency_register.py:27
↓ 1 callers
Function
remove_emojis_and_symbols
(text)
src/feature_pipeline/utils/cleaning.py:68
↓ 1 callers
Function
remove_emojis_and_symbols
(text)
src/bonus_superlinked_rag/utils/cleaning.py:68
↓ 1 callers
Function
replace_urls_with_placeholder
(text, placeholder="[URL]")
src/feature_pipeline/utils/cleaning.py:86
↓ 1 callers
Function
replace_urls_with_placeholder
(text, placeholder="[URL]")
src/bonus_superlinked_rag/utils/cleaning.py:86
↓ 1 callers
Method
rerank
(self, documents: list[Document], keep_top_k: int)
src/bonus_superlinked_rag/rag/retriever.py:94
↓ 1 callers
Method
restart
Restart the API via supervisor XML-RPC and return the result.
src/bonus_superlinked_rag/server/runner/executor/app/service/supervisor_service.py:22
↓ 1 callers
Method
restore
(self)
src/bonus_superlinked_rag/server/runner/executor/app/service/persistence_service.py:40
↓ 1 callers
Method
retrieve_top_k
(self, k: int, to_expand_to_n_queries: int)
src/bonus_superlinked_rag/rag/retriever.py:60
↓ 1 callers
Function
run_finetuning_on_sagemaker
( num_train_epochs: int = 3, per_device_train_batch_size: int = 2, learning_rate: float = 3e-4,
src/training_pipeline/run_on_sagemaker.py:23
↓ 1 callers
Function
save_model
( model: Any, tokenizer: Any, output_dir: str, push_to_hub: bool = False, repo_id: Optiona
src/training_pipeline/finetune.py:252
↓ 1 callers
Method
scroll
(self, collection_name: str, limit: int)
src/core/db/qdrant.py:64
↓ 1 callers
Method
send_prompt
(self, prompt: str)
src/feature_pipeline/generate_dataset/llm_communication.py:20
↓ 1 callers
Method
set_extra_driver_options
(self, options: Options)
src/data_crawling/crawlers/base.py:42
↓ 1 callers
Function
setup_application
(app: FastAPI)
src/bonus_superlinked_rag/server/runner/executor/app/middleware/lifespan_event.py:50
↓ 1 callers
Function
stream_process
()
src/data_cdc/cdc.py:13
↓ 1 callers
Function
teardown_application
(_: FastAPI)
src/bonus_superlinked_rag/server/runner/executor/app/middleware/lifespan_event.py:85
↓ 1 callers
Function
truncate_text_to_max_tokens
Truncates text to not exceed max_tokens while trying to preserve complete sentences. Args: text: The text to truncate max_tokens:
src/inference_pipeline/utils.py:11
↓ 1 callers
Function
unbold_text
(text)
src/feature_pipeline/utils/cleaning.py:10
↓ 1 callers
Function
unbold_text
(text)
src/bonus_superlinked_rag/utils/cleaning.py:10
↓ 1 callers
Function
unitalic_text
(text)
src/feature_pipeline/utils/cleaning.py:49
↓ 1 callers
Function
unitalic_text
(text)
src/bonus_superlinked_rag/utils/cleaning.py:49
↓ 1 callers
Function
validate_config
(config_path: str)
src/bonus_superlinked_rag/server/tools/deploy.py:57
Method
__call__
Possible changes to the value of the `__init__` argument do not affect the returned instance.
src/bonus_superlinked_rag/singleton.py:19
Method
__enter__
(self)
src/core/mq.py:40
Method
__enter__
(self)
src/bonus_superlinked_rag/mq.py:43
Method
__exit__
(self, exc_type, exc_val, exc_tb)
src/core/mq.py:44
Method
__exit__
(self, exc_type, exc_val, exc_tb)
src/bonus_superlinked_rag/mq.py:47
Method
__init__
(self, mock: bool = False)
src/inference_pipeline/llm_twin.py:19
Method
__init__
( self, name: str = "style_metric", model_name: str = settings.OPENAI_MODEL_ID )
src/inference_pipeline/evaluation/style.py:23
Method
__init__
( self, host: str | None = None, port: int | None = None, username: str | None
src/core/mq.py:22
Method
__init__
(self, query: str)
src/core/rag/retriever.py:23
Method
__init__
(self)
src/core/db/qdrant.py:13
Method
__init__
(self, queue_name: str, resume_state: MessageT | None = None)
src/feature_pipeline/data_flow/stream_input.py:23
Method
__init__
(self, connection: QdrantDatabaseConnector, sink_type: str)
src/feature_pipeline/data_flow/stream_output.py:16
Method
__init__
(self, connection: QdrantDatabaseConnector)
src/feature_pipeline/data_flow/stream_output.py:57
Method
__init__
(self, connection: QdrantDatabaseConnector)
src/feature_pipeline/data_flow/stream_output.py:77
Method
__init__
( self, file_handler: FileHandler, api_communicator: GptCommunicator, data_for
src/feature_pipeline/generate_dataset/generate.py:83
Method
__init__
(self, gpt_model: str = settings.OPENAI_MODEL_ID)
src/feature_pipeline/generate_dataset/llm_communication.py:16
Method
__init__
(self)
src/data_crawling/dispatcher.py:11
Method
__init__
(self)
src/data_crawling/crawlers/custom_article.py:16
Method
__init__
(self, scroll_limit: int = 5)
src/data_crawling/crawlers/base.py:18
Method
__init__
(self, ignore=(".git", ".toml", ".lock", ".png"))
src/data_crawling/crawlers/github.py:17
Method
__init__
(self, base_url=settings.SUPERLINKED_SERVER_URL)
src/bonus_superlinked_rag/superlinked_client.py:16
Method
__init__
( self, host: str | None = None, port: int | None = None, username: str | None
src/bonus_superlinked_rag/mq.py:25
Method
__init__
(self, queue_name: str, resume_state: MessageT | None = None)
src/bonus_superlinked_rag/data_flow/stream_input.py:33
Method
__init__
(self, client: SuperlinkedClient)
src/bonus_superlinked_rag/data_flow/stream_output.py:11
Method
__init__
(self, client: SuperlinkedClient)
src/bonus_superlinked_rag/data_flow/stream_output.py:19
Method
__init__
(self, file_handler_service: FileHandlerService)
src/bonus_superlinked_rag/server/runner/executor/app/service/file_object_serializer.py:30
Method
__init__
(self, server_proxy: ServerProxy)
src/bonus_superlinked_rag/server/runner/executor/app/service/supervisor_service.py:19
Method
__init__
(self, app_config: AppConfig, hash_type: HashType | None = None)
src/bonus_superlinked_rag/server/runner/executor/app/service/file_handler_service.py:13
Method
__init__
(self, app_config: AppConfig)
src/bonus_superlinked_rag/server/runner/executor/app/service/data_loader.py:38
← previous
next →
101–200 of 323, ranked by callers