MCPcopy Create free account

hub / github.com/OthersideAI/chronology / functions

Functions27 in github.com/OthersideAI/chronology

↓ 6 callersFunctionread_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 callersFunctioncleaned_completion
Wrapper for OpenAI API completion. Returns whitespace trimmed result from GPT-3.
chronological/__init__.py:153
↓ 3 callersFunctionfetch_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 callersFunctionmain
Main function that runs logic. Accepts a function implemented on your end!
chronological/__init__.py:236
↓ 2 callersFunction_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 callersFunction_max_search_doc
(resp, n)
chronological/__init__.py:76
↓ 1 callersFunction_batch_docs
Yield successive n-sized batches from list of docs.
chronological/__init__.py:71
↓ 1 callersFunction_fetch_response
(resp, n)
chronological/__init__.py:81
↓ 1 callersFunction_search
(q, docs, engine="ada")
chronological/__init__.py:21
↓ 1 callersFunction_trimmed_fetch_response
(resp, n)
chronological/__init__.py:92
↓ 1 callersFunctionbasic_example
()
demo/step_1.py:5
↓ 1 callersFunctionbasic_example_with_variables
()
demo/step_1.py:13
↓ 1 callersFunctionfetch_three_top_animals
(query, n)
demo/step_3.py:3
↓ 1 callersFunctionfetch_three_top_animals
(query, n)
demo/step_2.py:8
↓ 1 callersFunctionfetch_top_animal
(query)
demo/step_2.py:3
↓ 1 callersFunctionfind_each_animals_favorite_food
(animals)
demo/step_3.py:9
Functionadd_new_lines_end
Add N new lines to the end of a string.
chronological/__init__.py:117
Functionadd_new_lines_start
Add N new lines to the start of a string.
chronological/__init__.py:124
Functionappend_prompt
Add new content to the end of a string.
chronological/__init__.py:110
Functiongather
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
Functionlogic
()
tests/workflow.py:4
Functionlogic
()
demo/step_3.py:17
Functionlogic
()
demo/step_2.py:13
Functionlogic
()
demo/step_1.py:29
Functionprepend_prompt
Add new content to the start of a string.
chronological/__init__.py:103
Functionraw_completion
Wrapper for OpenAI API completion. Returns raw result from GPT-3.
chronological/__init__.py:174
Functionset_api_key
(api_key)
chronological/__init__.py:15