Skip to content

Commit

Permalink
feat(docs): add qabot (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
shazhou2015 committed Jun 27, 2022
1 parent 7b19bff commit ed1b92d
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 6 deletions.
13 changes: 13 additions & 0 deletions docs/_templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,19 @@
{% endblock right_sidebar %}
</aside>
</div>
<qa-bot
title="CLIP-as-service"
description="Embed images and sentences into fixed-length vectors with CLIP"
>
<template>
<dl>
<dt>You can ask questions about our docs. Try:</dt>
<dd>What is clip-as-service?</dd>
<dd>How to install clip-as-service?</dd>
<dd>Where can I get help?</dd>
</dl>
</template>
</qa-bot>
</div>
<img referrerpolicy="no-referrer-when-downgrade"
src="https://static.scarf.sh/a.png?x-pxid=2823e771-0e1e-4320-8fde-48bc48e53262"/>
Expand Down
13 changes: 7 additions & 6 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@
]
html_js_files = [
'https://cdn.jsdelivr.net/npm/vue@2/dist/vue.min.js',
'https://cdn.jsdelivr.net/npm/qabot@0.4',
]
htmlhelp_basename = slug
html_show_sourcelink = False
Expand Down Expand Up @@ -231,9 +232,9 @@ def setup(app):
),
],
)
# app.add_config_value(
# name='server_address',
# default=os.getenv('JINA_DOCSBOT_SERVER', 'https://jina-ai-docarray.docsqa.jina.ai'),
# rebuild='',
# )
# app.connect('builder-inited', configure_qa_bot_ui)
app.add_config_value(
name='server_address',
default=os.getenv('JINA_DOCSBOT_SERVER', 'https://jina-ai-clip-as-service.docsqa.jina.ai'),
rebuild='',
)
app.connect('builder-inited', configure_qa_bot_ui)

0 comments on commit ed1b92d

Please sign in to comment.