Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/OthersideAI/chronology
/ functions
Functions
27 in github.com/OthersideAI/chronology
⨍
Functions
27
◇
Types & classes
0
↓ 6 callers
Function
read_prompt
Looks in prompts/ directory for a text file. Pass in file name only, not extension. Example: prompts/hello-world.txt -> read_prompt('hello-w
chronological/__init__.py:131
↓ 4 callers
Function
cleaned_completion
Wrapper for OpenAI API completion. Returns whitespace trimmed result from GPT-3.
chronological/__init__.py:153
↓ 3 callers
Function
fetch_max_search_doc
Fetch document value with max score. Wrapper for OpenAI API Search. Optional: min_score_cutoff = if maximum score is less than cutoff,
chronological/__init__.py:195
↓ 3 callers
Function
main
Main function that runs logic. Accepts a function implemented on your end!
chronological/__init__.py:236
↓ 2 callers
Function
_completion
(prompt, engine="ada", max_tokens=64, temperature=0.7, top_p=1, stop=None, presence_penalty=0, frequency_penal
chronological/__init__.py:35
↓ 2 callers
Function
_max_search_doc
(resp, n)
chronological/__init__.py:76
↓ 1 callers
Function
_batch_docs
Yield successive n-sized batches from list of docs.
chronological/__init__.py:71
↓ 1 callers
Function
_fetch_response
(resp, n)
chronological/__init__.py:81
↓ 1 callers
Function
_search
(q, docs, engine="ada")
chronological/__init__.py:21
↓ 1 callers
Function
_trimmed_fetch_response
(resp, n)
chronological/__init__.py:92
↓ 1 callers
Function
basic_example
()
demo/step_1.py:5
↓ 1 callers
Function
basic_example_with_variables
()
demo/step_1.py:13
↓ 1 callers
Function
fetch_three_top_animals
(query, n)
demo/step_3.py:3
↓ 1 callers
Function
fetch_three_top_animals
(query, n)
demo/step_2.py:8
↓ 1 callers
Function
fetch_top_animal
(query)
demo/step_2.py:3
↓ 1 callers
Function
find_each_animals_favorite_food
(animals)
demo/step_3.py:9
Function
add_new_lines_end
Add N new lines to the end of a string.
chronological/__init__.py:117
Function
add_new_lines_start
Add N new lines to the start of a string.
chronological/__init__.py:124
Function
append_prompt
Add new content to the end of a string.
chronological/__init__.py:110
Function
gather
Run methods in parallel (they don't need to wait for each other to finish). Requires method argumets to be async. Example: await gather
chronological/__init__.py:140
Function
logic
()
tests/workflow.py:4
Function
logic
()
demo/step_3.py:17
Function
logic
()
demo/step_2.py:13
Function
logic
()
demo/step_1.py:29
Function
prepend_prompt
Add new content to the start of a string.
chronological/__init__.py:103
Function
raw_completion
Wrapper for OpenAI API completion. Returns raw result from GPT-3.
chronological/__init__.py:174
Function
set_api_key
(api_key)
chronological/__init__.py:15