The Accounting Paper Generator is a web application that helps users create detailed accounting papers for fintech products. It uses AI to generate accounting treatments and explanations based on user input.
- Generate accounting papers from product descriptions and financial events
- Suggest relevant financial events based on product descriptions
- Interactive web interface using Streamlit
- AI-powered content generation using Anthropic's Claude model
src/accounting_paper_generator/app.py
: Main Streamlit applicationsrc/accounting_paper_generator/backend.py
: Core logic for generating accounting papers and suggesting eventsaccounting_paper_template.md
: Template for the accounting paper structure.env
: Environment variables (make sure to create this file)
-
Clone the repository
-
Install Poetry if you haven't already:
pip install poetry
-
Install project dependencies:
poetry install
-
Create a
.env
file in the project root and add your Anthropic API key:ANTHROPIC_API_KEY=your_api_key_here
-
Activate the Poetry environment:
poetry shell
-
Run the Streamlit app:
streamlit run src/accounting_paper_generator/app.py
-
Open the provided URL in your browser
-
Enter your product description and list of events
-
Click "Generate Paper" to create your accounting paper
Main dependencies include:
- Streamlit
- Langchain
- Anthropic API (Claude model)
- python-dotenv
For a full list of dependencies, refer to the pyproject.toml
file.
- Ensure all required markdown files are in the correct directory relative to the Python scripts
- The application uses Claude 3.5 Sonnet model by default
This project is licensed under the MIT License with Commons Clause. See the LICENSE file for details.