MCPcopy Create free account

hub / github.com/CraftJarvis/RAT / functions

Functions23 in github.com/CraftJarvis/RAT

↓ 4 callersFunctionnum_tokens_from_string
Returns the number of tokens in a text string.
app/gradio_app.py:38
↓ 4 callersFunctionrun_with_timeout
(func, timeout, *args, **kwargs)
app/gradio_app.py:292
↓ 1 callersFunctionchunk_texts
trunk the text into n parts, return a list of text [text, text, text]
app/gradio_app.py:74
↓ 1 callersFunctiongenerate_diff_html
(text1, text2)
app/gradio_app.py:312
↓ 1 callersFunctionget_content
(query)
app/gradio_app.py:201
↓ 1 callersFunctionget_draft
(question)
app/gradio_app.py:111
↓ 1 callersFunctionget_page_content
(link:str)
app/gradio_app.py:27
↓ 1 callersFunctionget_query
(question, answer)
app/gradio_app.py:172
↓ 1 callersFunctionget_reflect_answer
(question, answer)
app/gradio_app.py:248
↓ 1 callersFunctionget_revise_answer
(question, answer, content)
app/gradio_app.py:217
↓ 1 callersFunctionget_search
(query:str="", k:int=1)
app/gradio_app.py:10
↓ 1 callersFunctionsplit_draft
(draft, split_char = '\n\n')
app/gradio_app.py:137
↓ 1 callersFunctionsplit_draft_openai
(question, answer, NUM_PARAGRAPHS = 4)
app/gradio_app.py:145
Functionchunk_text_by_sentence
Chunk the $text into sentences with less than 2k tokens.
app/gradio_app.py:44
Functionchunk_text_front
get the first `trunk_size` token of text
app/gradio_app.py:61
Functionclear_func
()
app/gradio_app.py:405
Functionget_content_wrapper
(q, query)
app/gradio_app.py:279
Functionget_query_wrapper
(q, question, answer)
app/gradio_app.py:275
Functionget_reflect_answer_wrapper
(q, question, answer)
app/gradio_app.py:287
Functionget_revise_answer_wrapper
(q, question, answer, content)
app/gradio_app.py:283
Functionrat
(question)
app/gradio_app.py:331
Functionsearch_results
(query)
app/gradio_app.py:12
Functionset_openai_api_key
(api_key)
app/gradio_app.py:408