Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/buckyroberts/AI-Playground
/ functions
Functions
10 in github.com/buckyroberts/AI-Playground
⨍
Functions
10
◇
Types & classes
0
↓ 3 callers
Function
generate_summary
Generates a summary of the provided text using the OpenAI GPT-3.5 Turbo model. Args: text (str): Text to be summarized. Ret
openai_examples/12_large_text_summary/main.py:72
↓ 3 callers
Function
get_embedding
(input, model)
openai_examples/13_embeddings/main.py:9
↓ 2 callers
Function
cosine_similarity
(a, b)
openai_examples/13_embeddings/main.py:6
↓ 2 callers
Function
summarize_document
Generates a summary of a text or PDF document. Args: file_path (str): Path to the document. is_pdf (bool, optional): Flag to
openai_examples/12_large_text_summary/main.py:6
↓ 1 callers
Function
pdf_to_text
Converts a PDF file to text. Args: pdf_path (str): Path to the PDF file. Returns: str: Extracted text from the PDF file
openai_examples/12_large_text_summary/main.py:27
↓ 1 callers
Function
run
()
openai_examples/05_function_calling/main.py:21
↓ 1 callers
Function
split_text_into_chunks
Splits text into smaller chunks. Args: text (str): Text to be split. chunk_size (int, optional): Size of each chunk. Default
openai_examples/12_large_text_summary/main.py:56
↓ 1 callers
Function
summarize_large_content
Generates a summary for large content. Args: content (str): Large content to be summarized. Returns: str: Summary of th
openai_examples/12_large_text_summary/main.py:41
Function
get_current_weather
Get the current weather in a given location
openai_examples/05_function_calling/main.py:10
Function
get_quotient
(a, b)
openai_examples/04_code_review/code.py:1