MCPcopy Create free account

hub / github.com/cxcscmu/RAGViz / functions

Functions79 in github.com/cxcscmu/RAGViz

↓ 5 callersMethodget_base_filename_by_id
(self, cw22id, cw22root_path, file_type='html')
backend/helpers/ClueWeb22Api.py:11
↓ 3 callersFunctiongetSearchUrl
( query: string, search_uuid: string, k: string, apiKey: string, snippet: string, )
frontend/src/app/utils/get-search-url.ts:1
↓ 3 callersMethodget_html_from_warc
(self)
backend/helpers/ClueWeb22Api.py:32
↓ 3 callersMethodget_json_record
(self, record_type)
backend/helpers/ClueWeb22Api.py:149
↓ 3 callersFunctionquery_range_dictionary
(range_list, query)
backend/helpers/range_dictionary.py:11
↓ 2 callersFunctioncn
(...inputs: ClassValue[])
frontend/src/app/utils/cn.ts:4
↓ 2 callersFunctioncreate_range_dictionary
(file_path)
backend/helpers/range_dictionary.py:1
↓ 2 callersFunctiondeepCopyArray
(arr: any)
frontend/src/app/components/sources.tsx:176
↓ 2 callersFunctionfetch
(i, url, jsonquery)
backend/helpers/concurrent_fetch.py:5
↓ 2 callersFunctionfetch_all
(urls, jsonquery)
backend/helpers/concurrent_fetch.py:13
↓ 2 callersMethodget_search_results
(self, embedding, k, query, snippet_object)
backend/search/search.py:7
↓ 2 callersMethodget_snippet
(self, query, article)
backend/snippet/snippet.py:5
↓ 2 callersFunctionhandleDragKeep
(tokenIndex: number, name: boolean)
frontend/src/app/components/sources.tsx:60
↓ 2 callersFunctionhandleDragStart
(tokenIndex: number, name: boolean)
frontend/src/app/components/sources.tsx:38
↓ 2 callersFunctionhandleRemoveDocument
(set: boolean)
frontend/src/app/components/sources.tsx:28
↓ 2 callersFunctionhighlight
(score: number | null)
frontend/src/app/components/sources.tsx:16
↓ 2 callersFunctionprocess_tokens
(tokenized_docs)
backend/rag/server.py:51
↓ 2 callersFunctionrag_client
(query: str, results)
backend/rag/client.py:4
↓ 2 callersFunctionunfilterAndPadSingleArray
( array: string | any[], filter: string | any[], )
frontend/src/app/utils/parse-rewrite.ts:23
↓ 1 callersFunctionembedding_function
(tokenizer, model, query)
backend/helpers/embedding.py:4
↓ 1 callersFunctionformat_attention
(attention, layers=None, heads=None)
backend/rag/server.py:103
↓ 1 callersMethodget_clean_text
(self)
backend/helpers/ClueWeb22Api.py:172
↓ 1 callersMethodget_primary_node_ids
(self, annotate_html)
backend/helpers/ClueWeb22Api.py:23
↓ 1 callersFunctionhandleDrop
(tokenIndex: number, name: boolean)
frontend/src/app/components/sources.tsx:54
↓ 1 callersFunctionhf
(model, input_ids, doc_starts, docs_len, input_len, generated_text)
backend/rag/server.py:126
↓ 1 callersFunctionload_model
(model_name, tp_size=1)
backend/rag/server.py:16
↓ 1 callersFunctionnum_heads
(attention)
backend/rag/server.py:122
↓ 1 callersFunctionnum_layers
(attention)
backend/rag/server.py:119
↓ 1 callersFunctionparseRAG
( controller: AbortController, query: string, search_uuid: string, k: string, apiKey: string, snip
frontend/src/app/utils/parse-rag.ts:3
↓ 1 callersFunctionparseRewrite
( controller: AbortController, query: string, sources: Source[], keep: boolean[][][], search_uuid: s
frontend/src/app/utils/parse-rewrite.ts:46
↓ 1 callersFunctionprocess_text
(doc_tokens, tokenized_text, attn_d)
backend/rag/server.py:154
↓ 1 callersFunctionpump
( reader: ReadableStreamDefaultReader<Uint8Array>, controller: ReadableStreamDefaultController, onChunk?
frontend/src/app/utils/fetch-stream.ts:1
↓ 1 callersFunctionrewrite
(keep: boolean[][][])
frontend/src/app/components/result.tsx:49
↓ 1 callersFunctionunfilterAndPadAttention
( attnElement: { name: any; snippet: any; score: any }, filter: any[], )
frontend/src/app/utils/parse-rewrite.ts:6
↓ 1 callersFunctionvllm
(model, query, docs, max_new_tokens=100, user_prompt=None, top_p=0.9, temperature=0.8)
backend/rag/server.py:65
FunctionAnswer
({ markdown, compare, markdownCompare, sources, token, tokenLength, setToken, clicked, setCl
frontend/src/app/components/answer.tsx:60
FunctionFooter
()
frontend/src/app/components/footer.tsx:3
FunctionHome
()
frontend/src/app/page.tsx:8
FunctionLogo
()
frontend/src/app/components/logo.tsx:3
FunctionPresetQuery
({ query })
frontend/src/app/components/preset-query.tsx:6
FunctionRelates
({ relates })
frontend/src/app/components/relates.tsx:8
FunctionResult
({ query, rid, k, apiKey, snippet, modal, setModal })
frontend/src/app/components/result.tsx:20
FunctionRootLayout
({ children }: { children: ReactNode })
frontend/src/app/layout.tsx:14
FunctionSearch
({ defK, apiKey, defSnippet })
frontend/src/app/components/search.tsx:12
FunctionSearchPage
()
frontend/src/app/search/page.tsx:8
FunctionSkeleton
({ className, ...props }: HTMLAttributes<HTMLDivElement>)
frontend/src/app/components/skeleton.tsx:4
FunctionSourceItem
({ source, index, token, keep, setKeep })
frontend/src/app/components/sources.tsx:13
FunctionSources
({ sources, token, rewrite })
frontend/src/app/components/sources.tsx:188
FunctionTitle
({ query, k, apiKey, snippet, setModal, }: { query: string; k: string; apiKey: string; snipp
frontend/src/app/components/title.tsx:11
FunctionToken
({ markdown, index, token, setToken, clicked, setClicked })
frontend/src/app/components/answer.tsx:14
FunctionWrapper
({ title, content })
frontend/src/app/components/wrapper.tsx:6
Method__init__
(self, tokenizer, model, stride, window_size)
backend/snippet/sliding_window.py:10
Method__init__
(self, tokenizer)
backend/snippet/naive_first.py:8
Method__init__
(self, cw22id, cw22root_path)
backend/helpers/ClueWeb22Api.py:7
Method__init__
(self)
backend/search/clueweb/search.py:14
Method__init__
(self)
backend/search/pile/search.py:16
Functioncheck_api_key
(request: Request, call_next)
backend/ragviz.py:62
FunctionfetchStream
( response: Response, onChunk?: (chunk: Uint8Array) => void, onDone?: () => void, )
frontend/src/app/utils/fetch-stream.ts:17
Functiongenerate
(request_data: RequestData = None, max_new_tokens: int = Query(100), top_p: float = Query(0.9), temperature: f
backend/rag/server.py:177
Methodget_inlinks
(self)
backend/helpers/ClueWeb22Api.py:176
Methodget_node_features
(self)
backend/helpers/ClueWeb22Api.py:65
Methodget_node_features_with_text
(self, is_primary=True)
backend/helpers/ClueWeb22Api.py:84
Methodget_outlinks
(self)
backend/helpers/ClueWeb22Api.py:180
Methodget_primary_content_with_annotations
(self)
backend/helpers/ClueWeb22Api.py:127
Methodget_search_results
(self, embedding, k, query, snippet_object)
backend/search/clueweb/search.py:27
Methodget_search_results
(self, embedding, k, query, snippet_object)
backend/search/pile/search.py:30
Methodget_snippet
(self, query, article)
backend/snippet/sliding_window.py:16
Methodget_snippet
(self, query, article)
backend/snippet/naive_first.py:11
FunctionhandleCancel
()
frontend/src/app/components/sources.tsx:203
FunctionhandleDragOver
(event: React.DragEvent<HTMLDivElement>)
frontend/src/app/components/answer.tsx:17
FunctionhandleDragStart
(event: React.DragEvent<HTMLDivElement>)
frontend/src/app/components/answer.tsx:15
FunctionhandleMouseEnter
()
frontend/src/app/components/answer.tsx:26
FunctionhandleMouseLeave
()
frontend/src/app/components/answer.tsx:34
FunctionhandleSave
()
frontend/src/app/components/sources.tsx:198
Methodprocess_index
(i)
backend/search/clueweb/search.py:57
Methodprocess_index
(i)
backend/search/pile/search.py:68
Functionquery_function
Query RAGViz and returns the response. The query can have the following fields: - query: the user query.
backend/ragviz.py:27
Functionrewrite
(item: dict)
backend/ragviz.py:72
Functionrewrites
()
frontend/next.config.mjs:15