-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix: Button loading state not reset on 'back' * Feat: search post processing to filter by average score * Feat: Updated api status error handling * Feat: Updated error handling & timeout duration * Refactored imports & moved global vars to constants.py * Feat: Updated dockerfile to install llama-cpp-python with openblas support by default * Add .env file and update gitignore, pipeline name, robots.txt, middleware, layout, page, sitemap, and navlink components * Fixed Pipeline Name * Updated Check File Size workflow * Updated Homepage to add GSC verification metadata tag * Updated check-file-size.yml action to run on push * Added Deployment Template & Contributing.md
- Loading branch information
Showing
8 changed files
with
175 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# Contributing | ||
|
||
Thank you for considering contributing to this project! Your time and effort in helping to make this project better is very much appreciated. | ||
|
||
## Table of Contents | ||
|
||
- [Getting Started](#getting-started) | ||
- [Contributing Guidelines](#contributing-guidelines) | ||
- [Code of Conduct](#code-of-conduct) | ||
- [License](#license) | ||
|
||
## Getting Started | ||
|
||
To get started with contributing, please follow these steps: | ||
|
||
1. Fork the repository and clone it to your local machine. | ||
2. Install any necessary dependencies. | ||
3. Create a new branch for your changes. | ||
4. Make your desired changes and commit them. | ||
5. Push your changes to your forked repository. | ||
6. Open a pull request to the main repository. | ||
|
||
## Contributing Guidelines | ||
|
||
Please follow these guidelines when contributing to this project: | ||
|
||
- Before starting work on a new feature or bug fix, check the existing issues and pull requests to avoid duplication of effort. | ||
- Make sure your code follows the project's coding style and conventions. | ||
- Write clear and concise commit messages. | ||
- Include tests for any new functionality or bug fixes. | ||
- Document any changes or additions to the project's documentation. | ||
|
||
## Code of Conduct | ||
|
||
We expect all contributors to adhere to our [Code of Conduct](CODE_OF_CONDUCT.md). Please read it carefully before making any contributions. | ||
|
||
## License | ||
|
||
This project is licensed under the [MIT License](LICENSE). By contributing to this project, you agree to abide by the terms of this license. | ||
|
||
--- | ||
|
||
We welcome contributions from everyone, regardless of their experience level or background. If you have any questions or need assistance, please don't hesitate to reach out. Happy contributing! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Smart Retrieval | ||
|
||
## Deployment Instructions | ||
|
||
### Prerequisites | ||
|
||
- [List any prerequisites or dependencies required for deployment] | ||
|
||
### Deployment Steps | ||
|
||
1. [Step 1: Describe the first step to deploy the project] | ||
2. [Step 2: Describe the second step to deploy the project] | ||
3. [Step 3: Describe the third step to deploy the project] | ||
- [Sub-step or additional information if necessary] | ||
4. [Step 4: Describe the fourth step to deploy the project] | ||
- [Sub-step or additional information if necessary] | ||
|
||
### Configuration | ||
|
||
- [List any configuration settings or environment variables required for deployment] | ||
|
||
### Usage | ||
|
||
- [Provide instructions on how to use or access the deployed project] | ||
|
||
### Troubleshooting | ||
|
||
- [List common issues or errors that may occur during deployment and how to resolve them] | ||
|
||
### Contributing | ||
|
||
- [Provide information on how others can contribute to the project] | ||
|
||
### License | ||
|
||
- [Specify the project's license] | ||
|
||
### Contact | ||
|
||
- [Provide contact information for support or inquiries] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
"use client"; | ||
|
||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { useState } from 'react'; | ||
import { IconSpinner } from '@/app/components/ui/icons'; | ||
import logo from '@/public/smart-retrieval-logo.webp'; | ||
|
||
export default function Home() { | ||
const [isLoading, setIsLoading] = useState(false); | ||
|
||
return ( | ||
<div className="rounded-xl shadow-xl p-4 max-w-5xl w-full"> | ||
<div className="max-w-2xl mx-auto p-4 text-center"> | ||
<div className="flex flex-col items-center mb-4 bg-gradient-to-r from-blue-500 to-indigo-500 text-white p-8 rounded-lg shadow-lg"> | ||
<div className="flex flex-col md:flex-row items-center md:items-start"> | ||
<Image | ||
src={logo} | ||
alt="Smart Retrieval Logo" | ||
width={150} | ||
height={150} | ||
priority | ||
className="rounded-lg mb-4 md:mb-0 md:mr-4" | ||
/> | ||
<div className='flex flex-col mt-4'> | ||
<h1 className="text-4xl font-bold mb-2 md:text-5xl">Smart Retrieval</h1> | ||
<p className="text-lg md:text-xl text-gray-200"> | ||
Your intelligent solution for quick and accurate information retrieval. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex flex-col mt-8 text-center items-center max-w-full"> | ||
<p id='get-started-paragraph' className="text-xl text-gray-700 dark:text-gray-200 mb-4"> | ||
Experience the power of Smart Retrieval today! | ||
</p> | ||
<Link href="/chat" onClick={() => { setIsLoading(true); }}> | ||
<div className="flex text-center items-center text-xl bg-blue-500 text-white px-6 py-3 rounded-md font-bold transition duration-300 ease-in-out transform hover:scale-125"> | ||
{isLoading ? ( | ||
<IconSpinner className="mr-2 animate-spin" /> | ||
) : null} | ||
Get Started | ||
</div> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,12 @@ | ||
"use client"; | ||
import Home from '@/app/components/ui/home/client-component'; | ||
import { Metadata } from 'next'; | ||
|
||
import Image from 'next/image'; | ||
import Link from 'next/link'; | ||
import { useState } from 'react'; | ||
import { IconSpinner } from '@/app/components/ui/icons'; | ||
import logo from '../public/smart-retrieval-logo.webp'; | ||
export const metadata: Metadata = { | ||
// Google Search Console HTML Tag Verification | ||
verification: { | ||
google: process.env.GSC_TAG_VERIFICATION, | ||
// Add more verification providers here. Refer: https://nextjs.org/docs/app/api-reference/functions/generate-metadata#verification | ||
}, | ||
}; | ||
|
||
export default function Home() { | ||
const [isLoading, setIsLoading] = useState(false); | ||
|
||
return ( | ||
<div className="rounded-xl shadow-xl p-4 max-w-5xl w-full"> | ||
<div className="max-w-2xl mx-auto p-4 text-center"> | ||
<div className="flex flex-col items-center mb-4 bg-gradient-to-r from-blue-500 to-indigo-500 text-white p-8 rounded-lg shadow-lg"> | ||
<div className="flex flex-col md:flex-row items-center md:items-start"> | ||
<Image | ||
src={logo} | ||
alt="Smart Retrieval Logo" | ||
width={150} | ||
height={150} | ||
priority | ||
className="rounded-lg mb-4 md:mb-0 md:mr-4" | ||
/> | ||
<div className='flex flex-col mt-4'> | ||
<h1 className="text-4xl font-bold mb-2 md:text-5xl">Smart Retrieval</h1> | ||
<p className="text-lg md:text-xl text-gray-200"> | ||
Your intelligent solution for quick and accurate information retrieval. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
<div className="flex flex-col mt-8 text-center items-center max-w-full"> | ||
<p id='get-started-paragraph' className="text-xl text-gray-700 dark:text-gray-200 mb-4"> | ||
Experience the power of Smart Retrieval today! | ||
</p> | ||
<Link href="/chat" onClick={() => { setIsLoading(true); }}> | ||
<div className="flex text-center items-center text-xl bg-blue-500 text-white px-6 py-3 rounded-md font-bold transition duration-300 ease-in-out transform hover:scale-125"> | ||
{isLoading ? ( | ||
<IconSpinner className="mr-2 animate-spin" /> | ||
) : null} | ||
Get Started | ||
</div> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default Home; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters