-
Notifications
You must be signed in to change notification settings - Fork 0
Terry/qa template #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
a3e396e
fbe0083
57f0784
68a1617
a044c09
8b84904
1d312bf
25d72c8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY | ||
_commit: '2405947' | ||
_commit: c9f43f6 | ||
_src_path: . | ||
llama_org_id: asdf | ||
llama_project_id: asdf | ||
project_name: test-proj | ||
project_title: Test Proj |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const APP_TITLE = "Test Proj"; | ||
export const AGENT_NAME = import.meta.env.VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME; | ||
export const INDEX_NAME = "document_qa_index"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
export const APP_TITLE = "Test Project"; | ||
export const AGENT_NAME = import.meta.env.VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME; | ||
export const INDEX_NAME = "document_qa_index"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
export const APP_TITLE = "{{ project_title }}"; | ||
export const AGENT_NAME = import.meta.env.VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME; | ||
export const INDEX_NAME = "document_qa_index"; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import ChatBot from "../components/ChatBot"; | ||
import { WorkflowTrigger } from "@llamaindex/ui"; | ||
import { APP_TITLE } from "../libs/config"; | ||
import { APP_TITLE, INDEX_NAME } from "../libs/config"; | ||
|
||
export default function Home() { | ||
return ( | ||
|
@@ -20,18 +20,10 @@ export default function Home() { | |
<div className="flex mb-4"> | ||
<WorkflowTrigger | ||
workflowName="upload" | ||
inputFields={[ | ||
{ | ||
key: "index_name", | ||
label: "Index Name", | ||
placeholder: "e.g. document_qa_index", | ||
required: true, | ||
}, | ||
]} | ||
customWorkflowInput={(files, fieldValues) => { | ||
return { | ||
file_id: files[0].fileId, | ||
index_name: fieldValues.index_name, | ||
index_name: INDEX_NAME, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. shouldn't this just entirely be managed on the server? I don't see a reason it needs to be parameterized There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Just want to be as less change as possible to ship... |
||
}; | ||
}} | ||
/> | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's this for? Doesn't really hurt, but this is automatically handled by llama deploy
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OPENAI_API_KEY somehow not able to be passed. That's why I add it back
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems found the root cause? Now we only read
env_files
, but config here isenv-files