Skip to content

Commit

Permalink
fix notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
pmeier committed Oct 10, 2023
1 parent 1aa6ec9 commit cab980e
Showing 1 changed file with 4 additions and 28 deletions.
32 changes: 4 additions & 28 deletions examples/python_api/python_api.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
{
"data": {
"text/plain": [
"Config(local_cache_root=PosixPath('/home/philip/.cache/ragna'), state_database_url='sqlite://', queue_database_url='memory', ragna_api_url='http://127.0.0.1:31476', ragna_ui_url='http://127.0.0.1:31477', document_class=<class 'ragna.core.LocalDocument'>, upload_token_secret='85d9cbd51c5ac58c33d966edf01280169391247f8643d6f4daa0f5195c184938', upload_token_ttl=30, registered_source_storage_classes={'Ragna/DemoSourceStorage': <class 'ragna.source_storage._demo.RagnaDemoSourceStorage'>}, registered_assistant_classes={'Ragna/DemoAssistant': <class 'ragna.assistant._demo.RagnaDemoAssistant'>})"
"Config(local_cache_root=PosixPath('/home/philip/.cache/ragna'), state_database_url='sqlite://', queue_database_url='memory', ragna_api_url='http://127.0.0.1:31476', ragna_ui_url='http://127.0.0.1:31477', document_class=<class 'ragna.core.LocalDocument'>, upload_token_secret='73d52dcaabca43863f31e3c6e8078754b7216ebd0e1a38da941e4f12a18553bb', upload_token_ttl=30, registered_source_storage_classes={'Ragna/DemoSourceStorage': <class 'ragna.source_storage._demo.RagnaDemoSourceStorage'>}, registered_assistant_classes={'Ragna/DemoAssistant': <class 'ragna.assistant._demo.RagnaDemoAssistant'>})"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -116,39 +116,15 @@
{
"cell_type": "code",
"execution_count": 6,
"id": "db899f79-e97b-4a61-89e8-7579339ff929",
"metadata": {},
"outputs": [
{
"data": {
"text/plain": [
"{ragna.source_storage._demo.RagnaDemoSourceStorage: Ragna/DemoSourceStorage,\n",
" ragna.assistant._demo.RagnaDemoAssistant: Ragna/DemoAssistant}"
]
},
"execution_count": 6,
"metadata": {},
"output_type": "execute_result"
}
],
"source": [
"from ragna.core._queue import _LOADED_COMPONENTS\n",
"\n",
"_LOADED_COMPONENTS"
]
},
{
"cell_type": "code",
"execution_count": 7,
"id": "4c2f04c8-a0e1-47fc-a900-bc03b91088a2",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"{('Chroma', 'OpenAI/gpt-3.5-turbo-16k'): <coroutine object answer_prompt at 0x7f120c115d40>,\n",
" ('Chroma', 'OpenAI/gpt-4'): <coroutine object answer_prompt at 0x7f120c115140>}\n"
"{('Chroma', 'OpenAI/gpt-3.5-turbo-16k'): <coroutine object answer_prompt at 0x7f84947d72c0>,\n",
" ('Chroma', 'OpenAI/gpt-4'): <coroutine object answer_prompt at 0x7f84ac4abf40>}\n"
]
}
],
Expand Down Expand Up @@ -183,7 +159,7 @@
},
{
"cell_type": "code",
"execution_count": 8,
"execution_count": 7,
"id": "d125a99d-51c2-4008-b49b-0c648abdb9e0",
"metadata": {},
"outputs": [
Expand Down

0 comments on commit cab980e

Please sign in to comment.