----------------------
The tutorial on
How to Build a Chatbot (
https://gpt-index.readthedocs.io/en/latest/guides/tutorials/building_a_chatbot.html) demonstrates how to create a context-augmented chatbot using LlamaIndex for data retrieval and Langchain for the underlying Agent/Chatbot abstractions. However, it doesn't explicitly mention resorting to the actual ChatGPT API if the index cannot find an answer in the database.
To achieve this fallback behavior, you would need to implement additional logic in your chatbot to call the ChatGPT API if LlamaIndex doesn't provide a satisfactory answer. This is not covered in the tutorial, but you can explore the
OpenAI API documentation (
https://beta.openai.com/docs/) to learn how to use the ChatGPT API directly.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------