Skip to content

Commit

Permalink
update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyiXia committed Jan 2, 2025
1 parent c81bf51 commit a995448
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 12 deletions.
Binary file added docs/source/_static/img/bge-logo.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 10 additions & 2 deletions docs/source/bge/bge_reranker_v2.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ BGE-Reranker-v2
+------------------------------------------------------------------------------------------------------------------+-----------------------+-------------+--------------+---------------------------------------------------------------------------------------------------------------------------------------------------------+


.. tip:: Suggessions on model selection
.. tip::

You can select the model according your senario and resource:

Expand All @@ -28,7 +28,9 @@ BGE-Reranker-v2
Usage
-----

Use bge-reranker-v2-m3 in the same way as bge-reranker-base and bge-reranker-large.
**bge-reranker-v2-m3**

Use :code:`bge-reranker-v2-m3` in the same way as bge-reranker-base and bge-reranker-large.

.. code:: python
Expand All @@ -43,6 +45,8 @@ Use bge-reranker-v2-m3 in the same way as bge-reranker-base and bge-reranker-lar
print(score)
**bge-reranker-v2-gemma**

Use the :code:`FlagLLMReranker` class for bge-reranker-v2-gemma.

.. code:: python
Expand All @@ -55,6 +59,8 @@ Use the :code:`FlagLLMReranker` class for bge-reranker-v2-gemma.
score = reranker.compute_score(['query', 'passage'])
print(score)
**bge-reranker-v2-minicpm-layerwise**

Use the :code:`LayerWiseFlagLLMReranker` class for bge-reranker-v2-minicpm-layerwise.

.. code:: python
Expand All @@ -68,6 +74,8 @@ Use the :code:`LayerWiseFlagLLMReranker` class for bge-reranker-v2-minicpm-layer
score = reranker.compute_score(['query', 'passage'], cutoff_layers=[28])
print(score)
**bge-reranker-v2.5-gemma2-lightweight**

Use the :code:`LightWeightFlagLLMReranker` class for bge-reranker-v2.5-gemma2-lightweight.

.. code:: python
Expand Down
17 changes: 7 additions & 10 deletions docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,20 +36,17 @@

# html_theme = 'furo'
html_theme = "pydata_sphinx_theme"
# html_logo = "_static/img/BAAI_logo.png"
html_logo = "_static/img/bge-logo.jpeg"
html_title = "BGE"
html_static_path = ['_static']
html_css_files = ["css/custom.css"]
html_theme_options = {
# # "light_logo": "/_static/img/BAAI_logo.png",
# "light_css_variables": {
# "color-brand-primary": "#238be8",
# "color-brand-content": "#238be8",
# },
# "dark_css_variables": {
# "color-brand-primary": "#FBCB67",
# "color-brand-content": "#FBCB67",
# },
"light_logo": "_static/img/bge-logo.jpeg",
"dark_logo": "_static/img/bge-logo.jpeg",
# "logo": {
# "text": "BGE",
# "image_dark": "_static/img/bge-logo.jpeg",
# },
"navigation_depth": 5,
}

Expand Down

0 comments on commit a995448

Please sign in to comment.