Libraries Used
- Langchain
- openai
- fastapi
- streamlit
- requests
- pydantic
This project provides an API that allows users to ask questions about web content and generate content based on specific formats and topics. It utilizes FastAPI, Langchain, OpenAI API for the backend, and Streamlit for the front end respectively.
- Web QA: Users can submit a URL and a question to get answers about web content.
- Content Creation: Users can specify a format and a topic to generate content.
To install the project dependencies, follow these steps:
- Clone the repository:
git clone <repository_url>
- Install the dependencies:
pip install -r requirements.txt
To run follow these steps:
- Set the
OPENAI_API_KEY
environment variable with your OpenAI API key in the .env file. - Start the FastAPI server:
uvicorn api:app --reload
. - In a separate terminal, start the Streamlit app:
streamlit run app.py
. - Access the application by opening
http://localhost:8501
in your browser.