MCPcopy Create free account

hub / github.com/InternLM/HuixiangDou / functions

Functions808 in github.com/InternLM/HuixiangDou

↓ 2 callersMethodcreate_chunks
Split markdown file Args: text: Markdown file
huixiangdou/primitive/splitter.py:439
↓ 2 callersFunctiondecode_tokens
(tokens: list[int], model_name: str = "gpt-4o")
huixiangdou/primitive/token.py:16
↓ 2 callersFunctiondel_access_info
del new access info from access:info db. :param name: :return:
web/service/access.py:30
↓ 2 callersMethoddownload
(data: dict, headers: dict, dir: str)
huixiangdou/frontend/wechat.py:538
↓ 2 callersMethoddump_networkx
Convert to networkx and dump GraphML format.
huixiangdou/services/kg.py:302
↓ 2 callersFunctionextract_json_from_str
(raw: str)
huixiangdou/services/helper.py:293
↓ 2 callersMethodextract_sg_result
Extracts the desired data from the source graph result. Args: jsonstr (str): JSON string containing source graph search result.
huixiangdou/services/sg_search.py:60
↓ 2 callersFunctionfiles
()
tests/test_lda/step1_countvec.py:29
↓ 2 callersFunctionformat_refs
(refs: List[str])
huixiangdou/api_server.py:19
↓ 2 callersMethodgen_image_store_path
(self, query_id, name: str, agent: ChatType)
web/service/chat.py:155
↓ 2 callersFunctiongenerate
Test generate.
tests/test_kimi_passkey.py:27
↓ 2 callersMethodgenerate
Processes user queries and generates appropriate responses. It involves several steps including checking for valid questions, extracti
huixiangdou/services/parallel_pipeline.py:243
↓ 2 callersFunctiongetBeanInfo
()
web/front-end/src/pages/bean-detail/bean-detail.tsx:74
↓ 2 callersFunctiongetMeta
(url)
web/front-end/src/utils/ajax.ts:39
↓ 2 callersMethodget_chunk_ids
Query by keywords ids
huixiangdou/primitive/entity.py:70
↓ 2 callersMethodget_cookie_secure
(cls)
web/config/env.py:24
↓ 2 callersMethodget_jwt_secret
(cls)
web/config/env.py:33
↓ 2 callersMethodget_message_endpoint
(cls)
web/config/env.py:72
↓ 2 callersMethodget_qalib_feature_store_id_by_suffix
(cls, suffix: str)
web/service/qalib.py:401
↓ 2 callersMethodget_sample_info
(cls, feature_store_id: str)
web/service/qalib.py:378
↓ 2 callersMethodget_scores
The ATIRE BM25 variant uses an idf function which uses a log(idf) score. To prevent negative idf scores, this algorithm also adds a f
huixiangdou/primitive/bm250kapi.py:145
↓ 2 callersMethodget_server_port
(cls)
web/config/env.py:28
↓ 2 callersFunctionhandleChange
(changeRoute, eventType: string)
web/front-end/src/config/change-page-gray.ts:49
↓ 2 callersFunctionhandleUnauth
()
web/front-end/src/interceptors/response.ts:10
↓ 2 callersFunctionhistogram
Print histogram log string for values.
huixiangdou/services/helper.py:258
↓ 2 callersMethodhlen_agent_used
(cls, agent: ChatType)
web/service/cache.py:122
↓ 2 callersMethodinsert_relation
Insert the relationship between keywords id and List of chunk_id
huixiangdou/primitive/entity.py:42
↓ 2 callersFunctionintegrateWebSearch
(webSearchToken: string)
web/front-end/src/services/home.ts:157
↓ 2 callersMethodis_available
Check knowledge graph exist or not.
huixiangdou/services/kg.py:336
↓ 2 callersMethodjsonify
(self)
huixiangdou/services/llm.py:82
↓ 2 callersMethodload_local
Load FAISS index and chunks from disk. Args: folder_path: folder path to load index and chunks from index.faiss index
huixiangdou/primitive/faiss.py:222
↓ 2 callersMethodmark_agent_used
(cls, agent_identifier: str, agent: ChatType)
web/service/cache.py:113
↓ 2 callersMethodmark_unique_inference_user
(cls, user_identifier: str, agent: ChatType)
web/service/cache.py:156
↓ 2 callersFunctionmeasure_latency
(pipe)
tests/test_optimum_st.py:95
↓ 2 callersFunctionnested_split_markdown
First split by header, then by length. `header` should be part of content.
huixiangdou/primitive/splitter.py:556
↓ 2 callersMethodprocess
(self, sess: Session)
huixiangdou/services/serial_pipeline.py:28
↓ 2 callersMethodprocess
(self, sess: Session)
huixiangdou/services/parallel_pipeline.py:189
↓ 2 callersMethodput
Put item into the queue.
huixiangdou/frontend/wechat.py:69
↓ 2 callersMethodqsize
Return the approximate size of the queue.
huixiangdou/frontend/wechat.py:61
↓ 2 callersFunctionrandomize_labels
(true_label)
sft/convert_to_alpaca.py:5
↓ 2 callersFunctionread_badcase
(llm_type: str, input_filepath: str)
sft/reconstruct_check_llm.py:23
↓ 2 callersFunctionremove
()
web/front-end/src/config/change-page-gray.ts:9
↓ 2 callersFunctionremoveCookie
(cookieName: string)
web/front-end/src/utils/utils.ts:42
↓ 2 callersMethodrerank
Rerank faiss search results.
huixiangdou/primitive/llm_reranker.py:177
↓ 2 callersMethodrerank_fuse
Rerank chunks and extract content Args: chunks (List[Chunk]): filtered chunks. Returns: str:
huixiangdou/services/retriever.py:147
↓ 2 callersFunctionsafe_join
Safely path to a base directory to avoid escaping the base directory. Borrowed from: werkzeug.security.safe_join. @param directory: @para
web/util/str.py:49
↓ 2 callersFunctionsave
(_id, sentence)
evaluation/rerank/step0_clean_queries.py:13
↓ 2 callersMethodsave
(self, chunks:List[Chunk], filedir:str)
huixiangdou/primitive/bm250kapi.py:68
↓ 2 callersMethodsave_local
Save FAISS index and store to disk. Args: folder_path: folder path to save. chunks: chunks to save. embed
huixiangdou/primitive/faiss.py:142
↓ 2 callersMethodsecurity_content
(self, tracker, response: str)
web/proxy/web_worker.py:118
↓ 2 callersFunctionsend
()
tests/test_post_android.py:12
↓ 2 callersFunctionsendFeedback
(type: string)
web/front-end/src/pages/bean-detail/components/chat/chat.tsx:46
↓ 2 callersMethodset_callback
(self)
huixiangdou/frontend/wechat.py:648
↓ 2 callersMethodset_entity
(self, entities: List[str])
huixiangdou/primitive/entity.py:60
↓ 2 callersMethodset_query_request
(cls, query_id: str, feature_store_id: str, info: ChatQueryInfo)
web/service/cache.py:21
↓ 2 callersFunctionsplit_python_code
Split python code to class, function and annotation.
huixiangdou/primitive/splitter.py:629
↓ 2 callersMethodsummarize
(self, files: list)
huixiangdou/primitive/file_operation.py:127
↓ 2 callersMethodupdate_throttle
Update reject throttle based on positive and negative examples.
huixiangdou/services/retriever.py:57
↓ 1 callersMethod__init__
(self, fsid: str)
evaluation/rerank/step1_create_candidates.py:45
↓ 1 callersMethod__str__
Override __str__ to restrict it to content_or_path and metadata.
huixiangdou/primitive/chunk.py:30
↓ 1 callersMethod__str__
Override __str__ to restrict it to text, image and audio.
huixiangdou/primitive/query.py:40
↓ 1 callersMethod_calc_idf
Calculates frequencies of terms in documents and in corpus. This algorithm sets a floor on the idf values to eps * average_idf
huixiangdou/primitive/bm250kapi.py:123
↓ 1 callersMethod_check_should_process
(cls, t: LarkContentType)
web/service/agent.py:237
↓ 1 callersFunction_create_qa_lib
1. init access info 2. init qalib info :param name: :param hashed_pass: :param feature_store_id: :return:
web/service/access.py:39
↓ 1 callersMethod_fetch_response
(cls, feature_store_id: str)
web/service/agent.py:364
↓ 1 callersMethod_get_chat_name
(cls, chat_id: str, client: lark.client)
web/service/agent.py:170
↓ 1 callersMethod_get_content_type_when_at_user_exists
( cls, mentions: List[MentionEvent])
web/service/agent.py:241
↓ 1 callersMethod_get_default_endpoint
(cls)
web/config/env.py:57
↓ 1 callersFunction_get_hxd_token_by_cookie
(cookies)
web/middleware/token.py:18
↓ 1 callersMethod_get_inputs
Build input tokens with query and chunks.
huixiangdou/primitive/llm_reranker.py:81
↓ 1 callersFunction_get_num_processes
()
tests/test_lda/step0_preprocess.py:130
↓ 1 callersMethod_initialize
(self, corpus)
huixiangdou/primitive/bm250kapi.py:39
↓ 1 callersMethod_parse_lark_content
( cls, content: str, mentions: List[MentionEvent])
web/service/agent.py:198
↓ 1 callersMethod_split_text
Split incoming text and return chunks.
huixiangdou/primitive/splitter.py:212
↓ 1 callersMethod_split_text_with_regex_from_end
(self, text: str, separator: str, keep_separator: bool)
huixiangdou/primitive/splitter.py:274
↓ 1 callersMethod_store_images
(self, images, query_id)
web/service/chat.py:123
↓ 1 callersMethodaction
(cls, body: WechatRequest, suffix: str)
web/service/agent.py:309
↓ 1 callersFunctionaddDocs
(files: File[])
web/front-end/src/services/home.ts:129
↓ 1 callersFunctionadd_access_info
add new access info to access:info db. :param name: :param value: :return:
web/service/access.py:19
↓ 1 callersMethodadd_docs
(self, files: List[UploadFile] = File(...))
web/service/qalib.py:93
↓ 1 callersMethodadd_inference_number
(cls)
web/service/cache.py:145
↓ 1 callersFunctionafterUpload
()
web/front-end/src/pages/bean-detail/components/import-docs/import-docs.tsx:22
↓ 1 callersMethodaggregate_lines_to_chunks
Combine lines with common metadata into chunks Args: lines: Line of text / associated header metadata
huixiangdou/primitive/splitter.py:393
↓ 1 callersFunctionajax
(api, { method = 'GET', params = {}, // url query参数 data = {}, // http body 参数 ...rest })
web/front-end/src/utils/ajax.ts:83
↓ 1 callersFunctionalways_get_an_event_loop
()
huixiangdou/primitive/utils.py:4
↓ 1 callersFunctionalways_get_an_event_loop
()
web/proxy/main.py:25
↓ 1 callersMethodanalyze
Output documents length mean, median and histogram.
huixiangdou/services/store.py:297
↓ 1 callersFunctionbuild_config_path
()
unittest/service/daily_smoke.py:35
↓ 1 callersFunctionbuild_config_path
()
unittest/service/test_sg_search.py:24
↓ 1 callersFunctionbuild_context
(sender: str, query: str, window: list)
sft/reconstruct_filter_annotate.py:23
↓ 1 callersFunctionbuild_feature_store
(main_args)
huixiangdou/gradio_ui.py:177
↓ 1 callersFunctionbuild_feature_store
(cache: CacheRetriever, payload: types.SimpleNamespace)
web/proxy/main.py:176
↓ 1 callersFunctionbuild_input_text
(chat_history, list_of_plugin_info)
tests/test_qwen_react.py:96
↓ 1 callersMethodbuild_inverted_index
Build inverted index based on named entity for knowledge base.
huixiangdou/services/store.py:131
↓ 1 callersMethodbuild_md
Load markdown and split, build nodes and relationship.
huixiangdou/services/kg.py:193
↓ 1 callersMethodbuild_md_chunk
Parse markdown chunk to nodes and relations. LLM NER with retry policy.
huixiangdou/services/kg.py:148
↓ 1 callersMethodbuild_sparse
Use BM25 for building code feature
huixiangdou/services/store.py:166
↓ 1 callersFunctionbuild_topic
(dirname: str='preprocess')
tests/test_lda/step1_countvec.py:77
↓ 1 callersFunctioncalculate
(chunk_size: int)
tests/test_build_milvus_and_filter.py:162
↓ 1 callersFunctioncalculate
(chunk_size: int)
evaluation/rejection/build_fs_and_filter.py:217
← previousnext →101–200 of 808, ranked by callers