This repository contains the frontend code for the Bayard project. The backend code can be found in a separate repository at [https://github.com/jweaver9/bayard_one](https://github.com/jweaver9/bayard_one). The frontend and backend work together to provide a seamless user experience and enable the retrieval and generation of relevant research information.
For detailed documentation on how to use and contribute to Bayard , please visit [docs.bayardlab.org](https://docs.bayardlab.org).
- Next.js
- React
- TypeScript
- Tailwind CSS
- Radix UI components
- Framer Motion for animations
- React Spring for animations
- React Hot Toast for notifications
- Axios for API requests
- Clone the repository
- Install dependencies:
npm install
- Set up environment variables:
BAYARD_API_KEY
: API key for the Bayard API
- Run the development server:
npm run dev
- Open http://localhost:3000 in your browser
Bayard_One is an innovative open-source retrieval-augmented generative AI assistant that aims to transform the way researchers, academics, and community members engage with scholarship.
By integrating a vast collection of over 20,000 research papers, journals, and resources, Bayard_One provides a centralized platform for exploring the diverse and complex landscape of knowledge, fostering a deeper understanding of the community's experiences, challenges, and triumphs.
- Chat interface for querying the AI assistant
- Retrieval of relevant research documents
- Document summaries and abstracts
- Resizable panels for chat and document display
- Smooth animations and transitions
- Loading indicators and status updates
- Copy, share, and provide feedback on chat messages
- Regenerate responses
- Keyboard shortcuts for sending messages
app/
: Next.js app directorypage.tsx
: Main chat page component
components/
: Reusable UI componentspages/api/
: API routesbayard-proxy.ts
: Proxy route for Bayard API requests
public/
: Public assetsstyles/
: Global styles
Contributions are welcome! Please follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b feature/your-feature
- Make your changes and commit them:
git commit -m 'Add your feature'
- Push to the branch:
git push origin feature/your-feature
- Submit a pull request
This project is licensed under:
Weaver Laboratories License 1.0 for General Parties and Persons (WL1.0GP)
For any questions or inquiries, please contact the Bayard Lab team at [email protected].