Wiki knowledge server is perform pipeline to high performance search wiki data.
Pipeline include:
FIRST TIME run server, store and search will be slow.
Because the server need to load the model into storage.
Everytime you initialize the server, The server need to load the model from storage to GPU memory.
This process will take time.
CUVS installation:
pip install \
--extra-index-url=https://pypi.nvidia.com \
"cudf-cu12==24.10.*" "cuvs-cu12==24.10.*"
prepare_wiki.py)
data/chunk/wiki-chunk.parquetembedding_wiki.py)
data/vector/wiki-vector.parquetindexing_wiki.py
data/index/wiki-indexquick_search_wiki.py will perform search with cuvs.
create_ground_truth.py will perform search with brute force.
data/vector/ground-truth.parquetquick_eval_wiki.py will perform search with cuvs.
server.py and Endpoint section.POST /search Request:
{
"query": "string query",
"top_k": "number of result"
}
query: Search query.
top_k: Number of result to return.
Response:
{
"message": "Search completed successfully",
"content": ["result_text_1", "result_text_2", ...],
"url": ["result_url_1", "result_url_2", ...],
"topics": ["result_topic_1", "result_topic_2", ...]
}
6 commits
Python
100.0%
Wiki knowledge server is perform pipeline to high performance search wiki data.
Pipeline include:
FIRST TIME run server, store and search will be slow.
Because the server need to load the model into storage.
Everytime you initialize the server, The server need to load the model from storage to GPU memory.
This process will take time.
CUVS installation:
pip install \
--extra-index-url=https://pypi.nvidia.com \
"cudf-cu12==24.10.*" "cuvs-cu12==24.10.*"
prepare_wiki.py)
data/chunk/wiki-chunk.parquetembedding_wiki.py)
data/vector/wiki-vector.parquetindexing_wiki.py
data/index/wiki-indexquick_search_wiki.py will perform search with cuvs.
create_ground_truth.py will perform search with brute force.
data/vector/ground-truth.parquetquick_eval_wiki.py will perform search with cuvs.
server.py and Endpoint section.POST /search Request:
{
"query": "string query",
"top_k": "number of result"
}
query: Search query.
top_k: Number of result to return.
Response:
{
"message": "Search completed successfully",
"content": ["result_text_1", "result_text_2", ...],
"url": ["result_url_1", "result_url_2", ...],
"topics": ["result_topic_1", "result_topic_2", ...]
}
6 commits
Python
100.0%