File tree Expand file tree Collapse file tree 13 files changed +32
-43
lines changed
src/{{ project_name_snake }} Expand file tree Collapse file tree 13 files changed +32
-43
lines changed Original file line number Diff line number Diff line change 6262 - name : Activate pnpm version
6363 working-directory : test-proj/ui
6464 run : corepack prepare --activate
65-
6665
6766 - name : Run UI checks
6867 run : pnpm run all-check
69- working-directory : test-proj/ui
68+ working-directory : test-proj/ui
Original file line number Diff line number Diff line change @@ -9,8 +9,6 @@ This application uses LlamaDeploy. For more information see [the docs](https://d
99
10101 . install ` uv ` if you haven't ` brew install uv `
11112 . run ` uvx llamactl serve `
12- 3 . Visit http://localhost:4501/docs and see workflow APIs
13-
1412
1513# Organization
1614
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ build-backend = "hatchling.build"
2020
2121[dependency-groups]
2222dev = [
23+ "click==8.1.7",
2324 "hatch>=1.14.1",
2425 "pytest>=8.4.2",
2526 "ruff>=0.13.0",
Original file line number Diff line number Diff line change 11import logging
22import os
3+ import tempfile
34
45import httpx
6+ from dotenv import load_dotenv
57from llama_cloud .types import RetrievalMode
6- import tempfile
8+ from llama_index . core import Settings
79from llama_index .core .chat_engine .types import BaseChatEngine , ChatMode
10+ from llama_index .core .memory import ChatMemoryBuffer
11+ from llama_index .embeddings .openai import OpenAIEmbedding
12+ from llama_index .llms .openai import OpenAI
13+ from llama_cloud_services import LlamaCloudIndex
814from workflows import Workflow , step , Context
915from workflows .events import (
1016 StartEvent ,
1521)
1622from workflows .retry_policy import ConstantDelayRetryPolicy
1723
18- from llama_cloud_services import LlamaCloudIndex
19- from llama_index .core import Settings
20- from llama_index .llms .openai import OpenAI
21- from llama_index .embeddings .openai import OpenAIEmbedding
22- from llama_index .core .memory import ChatMemoryBuffer
23-
2424from .clients import (
2525 LLAMA_CLOUD_API_KEY ,
2626 LLAMA_CLOUD_BASE_URL ,
3030 LLAMA_CLOUD_PROJECT_ID ,
3131)
3232
33+ load_dotenv ()
34+
3335
3436logger = logging .getLogger (__name__ )
3537
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 @@ -9,8 +9,6 @@ This application uses LlamaDeploy. For more information see [the docs](https://d
99
10101 . install ` uv ` if you haven't ` brew install uv `
11112 . run ` uvx llamactl serve `
12- 3 . Visit http://localhost:4501/docs and see workflow APIs
13-
1412
1513# Organization
1614
Original file line number Diff line number Diff line change @@ -20,6 +20,7 @@ build-backend = "hatchling.build"
2020
2121[dependency-groups ]
2222dev = [
23+ " click==8.1.7" ,
2324 " hatch>=1.14.1" ,
2425 " pytest>=8.4.2" ,
2526 " ruff>=0.13.0" ,
Original file line number Diff line number Diff line change 11import logging
22import os
3+ import tempfile
34
45import httpx
6+ from dotenv import load_dotenv
57from llama_cloud .types import RetrievalMode
6- import tempfile
8+ from llama_index . core import Settings
79from llama_index .core .chat_engine .types import BaseChatEngine , ChatMode
10+ from llama_index .core .memory import ChatMemoryBuffer
11+ from llama_index .embeddings .openai import OpenAIEmbedding
12+ from llama_index .llms .openai import OpenAI
13+ from llama_cloud_services import LlamaCloudIndex
814from workflows import Workflow , step , Context
915from workflows .events import (
1016 StartEvent ,
1521)
1622from workflows .retry_policy import ConstantDelayRetryPolicy
1723
18- from llama_cloud_services import LlamaCloudIndex
19- from llama_index .core import Settings
20- from llama_index .llms .openai import OpenAI
21- from llama_index .embeddings .openai import OpenAIEmbedding
22- from llama_index .core .memory import ChatMemoryBuffer
23-
2424from .clients import (
2525 LLAMA_CLOUD_API_KEY ,
2626 LLAMA_CLOUD_BASE_URL ,
3030 LLAMA_CLOUD_PROJECT_ID ,
3131)
3232
33+ load_dotenv ()
34+
3335
3436logger = logging .getLogger (__name__ )
3537
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 />
You can’t perform that action at this time.
0 commit comments