-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from vectara/added-env-for-config
moved the config to .env
- Loading branch information
Showing
11 changed files
with
158 additions
and
41 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
REACT_APP_CORPUS_ID=<Vectara corpus ID> | ||
REACT_APP_CUSTOMER_ID=<Vectara customer ID> | ||
REACT_APP_APP_TITLE=<App title e.g. Search Hackernews > | ||
REACT_APP_API_KEY=<Vectara API KEY> | ||
REACT_APP_ENDPOINT=api.vectara.io | ||
REACT_APP_QUESTION=<Question , separated e.g What is Gemini-Flash?,When will GPT-5 be released?> |
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,5 @@ | ||
blank_issues_enabled: true | ||
contact_links: | ||
- name: Questions | ||
url: https://discuss.vectara.com/ | ||
about: Ask questions and interact with the community here! |
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,36 @@ | ||
name: 🐞 Search Hackernews Bug | ||
description: File a bug about Search Hackernews | ||
labels: ["bug"] | ||
body: | ||
- type: markdown | ||
attributes: | ||
value: | | ||
Thanks for taking the time to fill out this bug report! | ||
Please complete the following form to help us assist you. | ||
- type: textarea | ||
id: what-happened | ||
attributes: | ||
label: Bug Description | ||
description: What happened? | ||
validations: | ||
required: true | ||
- type: input | ||
id: version | ||
attributes: | ||
label: Version | ||
description: What version of search hackernews are you using? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: steps-to-reproduce | ||
attributes: | ||
label: Steps to Reproduce | ||
description: Which steps should someone take to run into the same error? | ||
validations: | ||
required: true | ||
- type: textarea | ||
id: logs | ||
attributes: | ||
label: Relevant Logs/Tracbacks | ||
description: Please copy and paste any relevant log output. This will be automatically formatted into code, so no need for backticks. | ||
render: shell |
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,10 @@ | ||
name: 💡 New feature request | ||
description: Something is missing in the search hackernews | ||
labels: ["new-feat-idea"] | ||
body: | ||
- type: textarea | ||
attributes: | ||
label: Idea | ||
description: What do you think should be in search hackernews. | ||
validations: | ||
required: true |
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,42 @@ | ||
# Contributing to Search Hackernews | ||
|
||
Thank you for your interest in Search Hackernews and considering contributing to our project! | ||
Whether it's a bugfix or anything else - we truly appreciate your time and effort. | ||
|
||
This document provides guidelines and best practices to help you contribute effectively. | ||
|
||
## Getting started | ||
|
||
1. Fork the repository and clone your fork. | ||
2. Create a new branch for your changes (e.g. `bug-fix-1234`) | ||
3. Make your changes in the new branch and test. | ||
4. Commit and push your changes to your fork. Add useful comments to describe your changes. | ||
5. Create a pull request following the guidelines in the [Submitting Pull Requests](#submitting-pull-requests) section. | ||
|
||
## Contributing | ||
|
||
### Reporting bugs | ||
|
||
If you find a bug in the project, please create an issue on GitHub with the following information: | ||
|
||
- A clear, descriptive title for the issue. | ||
- A description of the problem, including steps to reproduce the issue. | ||
- Any relevant logs, screenshots, or other supporting information. | ||
|
||
### Suggesting enhancements | ||
|
||
If you have an idea for a new feature or improvement, please create an issue on GitHub with the following information: | ||
|
||
- A clear, descriptive title for the issue. | ||
- A detailed description of the proposed enhancement, including any benefits and potential drawbacks. | ||
- Any relevant examples, mockups, or supporting information. | ||
|
||
### Submitting pull requests | ||
|
||
When submitting a pull request, please ensure that your changes meet the following criteria: | ||
|
||
- Your pull request should be atomic and focus on a single change. | ||
- You should have thoroughly tested your changes with multiple different scenarios. | ||
- You should have considered potential risks and mitigations for your changes. | ||
- You should have documented your changes clearly and comprehensively. | ||
- Please do not include any unrelated or "extra" small tweaks or changes. |
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,9 @@ | ||
# Security Policy | ||
|
||
The Vectara trust and security center, including our security policy, can be found at | ||
[https://vectara.com/legal/security-at-vectara/](https://vectara.com/legal/security-at-vectara/). | ||
|
||
|
||
## Reporting a Vulnerability | ||
|
||
Please send security vulnerability reports to security@vectara.com. |
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 |
---|---|---|
@@ -1,13 +1,10 @@ | ||
import { Config } from "./contexts/ConfigurationContext"; | ||
|
||
export const configuration: Config = { | ||
corpusId: "265", | ||
customerId: "1526022105", | ||
appTitle: "Search HackerNews", | ||
apiKey: "zqt_WvU_2YIBRMve7vmQP3h70deqDOgYM0W5VpYeXQ", | ||
endpoint: "api.vectara.io", | ||
questions: [ | ||
"What is Gemini-Flash?", "When will GPT-5 be released?", | ||
"What is Llama3?", "can I win the Arc-AGI competition?" | ||
] | ||
corpusId: process.env.REACT_APP_CORPUS_ID, | ||
customerId: process.env.REACT_APP_CUSTOMER_ID, | ||
appTitle: process.env.REACT_APP_APP_TITLE, | ||
apiKey: process.env.REACT_APP_API_KEY, | ||
endpoint: process.env.REACT_APP_ENDPOINT, | ||
questions: process.env.REACT_APP_QUESTION?.split(',') || [] | ||
}; |
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