{ "cells": [ { "cell_type": "code", "execution_count": 3, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "Using model: gpt-3.5-turbo\n", "Loading path from disk...\n" ] } ], "source": [ "from megabots import bot\n", "from dotenv import load_dotenv\n", "\n", "load_dotenv()\n", "\n", "qnabot = bot(\"qna-over-docs\", index=\"./index.pkl\")" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "'The document does not provide an answer to the question \"What is the meaning of life?\".\\nSOURCES:'" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "qnabot.ask(\"What is the meaning of life?\")" ] } ], "metadata": { "kernelspec": { "display_name": ".venv", "language": "python", "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", "version": "3.10.0" }, "orig_nbformat": 4 }, "nbformat": 4, "nbformat_minor": 2 }