- Simplify the chat loop by moving it to a separate function called 'loop'.
- This improves code readability and makes it easier to test the chat function without needing to mock user input.
- Refactored the text loader in utils.py to improve readability and maintainability.
- Added a new function called in utils.py to check if the current directory is a git repository.
- Modified the function in utils.py to ignore files and directories ignored by git.
- Added error handling to function in utils.py to return if the current directory is not a git repository.
- Added a spinner using the Halo package to indicate when files are being loaded.
- The spinner appears while the load_files function is running and disappears once the function has completed.
- This should improve the user experience by providing feedback that the program is actively doing something.
- Add CLI functionality for chatting with OpenAI model
- Implement function to allow users to input OpenAI API key and model name
- Implement function to allow users to chat with OpenAI model using retrieved documents
- Add module to handle sending questions to OpenAI model
- Add module to load and split text documents, create retriever, and define StreamStdOut callback class