Created
June 11, 2024 17:17
-
-
Save elijahbenizzy/c5c03f58baf0e530fe49e62663525a87 to your computer and use it in GitHub Desktop.
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
def urls(base_url: str, max_scrape_depth: int = 1, cutoff: int = None) -> pd.DataFrame: | |
"""Gives all recursive URLs from the given base URL.""" | |
def embedder() -> URLEmbedder: | |
"""Sets up an embedder to embed URLs on a remote GPU box.""" | |
def embeddings_df(urls: pd.DataFrame, embedder: URLEmbedder) -> pd.DataFrame: | |
"""Adds embeddings to the given URL DataFrame.""" | |
def saved_embeddings(embeddings_df: pd.DataFrame) -> str: | |
"""Saves the embeddings to disk + returns URL""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment