File tree Expand file tree Collapse file tree 8 files changed +18
-23
lines changed
src/{{ project_name_snake }} Expand file tree Collapse file tree 8 files changed +18
-23
lines changed Original file line number Diff line number Diff line change 2121from llama_index .embeddings .openai import OpenAIEmbedding
2222from llama_index .core .memory import ChatMemoryBuffer
2323
24+ from dotenv import load_dotenv
25+
26+ load_dotenv ()
27+
2428from .clients import (
2529 LLAMA_CLOUD_API_KEY ,
2630 LLAMA_CLOUD_BASE_URL ,
Original file line number Diff line number Diff line change 11# Changes here will be overwritten by Copier; NEVER EDIT MANUALLY
2- _commit : ' 2405947 '
2+ _commit : c9f43f6
33_src_path : .
4- llama_org_id : asdf
5- llama_project_id : asdf
64project_name : test-proj
5+ project_title : Test Proj
Original file line number Diff line number Diff line change 2020from llama_index .llms .openai import OpenAI
2121from llama_index .embeddings .openai import OpenAIEmbedding
2222from llama_index .core .memory import ChatMemoryBuffer
23+ from dotenv import load_dotenv
24+
25+ load_dotenv ()
2326
2427from .clients import (
2528 LLAMA_CLOUD_API_KEY ,
Original file line number Diff line number Diff line change 11export const APP_TITLE = "Test Proj" ;
22export const AGENT_NAME = import . meta. env . VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME ;
3+ export const INDEX_NAME = "document_qa_index" ;
Original file line number Diff line number Diff line change 11import ChatBot from "../components/ChatBot" ;
22import { WorkflowTrigger } from "@llamaindex/ui" ;
3- import { APP_TITLE } from "../libs/config" ;
3+ import { APP_TITLE , INDEX_NAME } from "../libs/config" ;
44
55export default function Home ( ) {
66 return (
@@ -20,18 +20,10 @@ export default function Home() {
2020 < div className = "flex mb-4" >
2121 < WorkflowTrigger
2222 workflowName = "upload"
23- inputFields = { [
24- {
25- key : "index_name" ,
26- label : "Index Name" ,
27- placeholder : "e.g. document_qa_index" ,
28- required : true ,
29- } ,
30- ] }
3123 customWorkflowInput = { ( files , fieldValues ) => {
3224 return {
3325 file_id : files [ 0 ] . fileId ,
34- index_name : fieldValues . index_name ,
26+ index_name : INDEX_NAME ,
3527 } ;
3628 } }
3729 />
Original file line number Diff line number Diff line change 1+ export const APP_TITLE = "Test Project" ;
2+ export const AGENT_NAME = import . meta. env . VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME ;
3+ export const INDEX_NAME = "document_qa_index" ;
Original file line number Diff line number Diff line change 11export const APP_TITLE = "{{ project_title }}";
22export const AGENT_NAME = import.meta.env.VITE_LLAMA_DEPLOY_DEPLOYMENT_NAME;
3+ export const INDEX_NAME = "document_qa_index";
Original file line number Diff line number Diff line change 11import ChatBot from "../components/ChatBot" ;
22import { WorkflowTrigger } from "@llamaindex/ui" ;
3- import { APP_TITLE } from "../libs/config" ;
3+ import { APP_TITLE , INDEX_NAME } from "../libs/config" ;
44
55export default function Home ( ) {
66 return (
@@ -20,18 +20,10 @@ export default function Home() {
2020 < div className = "flex mb-4" >
2121 < WorkflowTrigger
2222 workflowName = "upload"
23- inputFields = { [
24- {
25- key : "index_name" ,
26- label : "Index Name" ,
27- placeholder : "e.g. document_qa_index" ,
28- required : true ,
29- } ,
30- ] }
3123 customWorkflowInput = { ( files , fieldValues ) => {
3224 return {
3325 file_id : files [ 0 ] . fileId ,
34- index_name : fieldValues . index_name ,
26+ index_name : INDEX_NAME ,
3527 } ;
3628 } }
3729 />
You can’t perform that action at this time.
0 commit comments