Text Analysis with OpenAI GPT 3.5
1.0.0
This repository contains a Python script for analyzing text using the OpenAI gpt-3.5-turbo language model. The script takes a text or PDF file as input, and allows users to ask questions about the content. If you need documentation from OpenAI of the model, you can find it here.
git clone https://github.com/ddtdanilo/Text-Analysis-with-OpenAI-GPT-3.5.git
pip install openai PyPDF2 python-dotenv
python scripts/text_analysis.py examples/example_prompt.txt examples/example_response.txt examples/example-text_to_analyze.txt
Ask questions about the text by typing them in at the prompt. The script will generate answers using the OpenAI GPT-3 language model.
To exit the script, type "exit" at the prompt.
The script currently uses the "gpt-3.5-turbo", which is the most powerful.
Contributions to this project are welcome. If you find any bugs or have suggestions for new features, please create an issue or submit a pull request.
This project is licensed under the MIT License.