Engage in a dynamic conversation with the content of Simon Wardley's book on Wardley Mapping.
"Chat with Simon Wardley's Book" is an AI-driven application powered by the GPT-4 model and OpenAI API. Using the Streamlit framework, it offers a responsive interface, enabling users to pose questions and receive insightful responses.
- Interact with the book through natural language and AI capabilities.
- Leverage OpenAI's GPT-4 model for articulate answers.
- Streamlit integration ensures an intuitive user experience.
- Clone the repository.
- Set the OpenAI API key in the Streamlit secrets manager.
- Ensure you have the index.faiss and index.pkl files in the data_store directory.
- Run the streamlit app using the command streamlit run main.py.
To run this code, you need the following Python packages:
- os
- re
- openai
- streamlit
- langchain
- FAISS
The application uses the OpenAI API. You will need to obtain an API key from OpenAI and set it in the Streamlit secrets manager.
The application harnesses a local data store situated in the data_store
directory. Both index.faiss
and index.pkl
files are mandatory; otherwise, the application will return an error.
Once the application is running, you can use the input box labeled "Question for the book?" to ask your question. After entering your question, the application will generate an answer and display it on the screen.
Mark Craddock is the brain behind this application. Connect with him and stay updated on Twitter.
The current version of this application is 0.1.4.
This application, while feature-rich, may exhaust OpenAI credits. Wardley Mapping content is a gracious provision by Simon Wardley and holds a Creative Commons Attribution Share-Alike license. Always adhere to OpenAI's use-case guidelines and employ this application responsibly.
Please use responsibly and in accordance with OpenAI's use-case policy.
This project is licensed under Creative Commons Attribution Share-Alike.