Skip to content

Commit 2405947

Browse files
committed
template
0 parents  commit 2405947

36 files changed

+2231
-0
lines changed

.env

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# LlamaCloud API configuration
2+
LLAMA_CLOUD_API_KEY=llx-your-api-key-here
3+
4+
# OpenAI API configuration
5+
OPENAI_API_KEY=sk-your-openai-api-key-here

.gitignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
test-proj/uv.lock
2+
.venv
3+
uv.lock
4+
expected-proj
5+
test-proj/.venv
6+
test-proj/ui/node_modules
7+
test-proj/ui/pnpm-lock.yaml
8+
ui/pnpm-lock.yaml
9+
ui/package-lock.json
10+
test-proj/ui/package-lock.json

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Document Q&A Application
2+
3+
A document question-answering application built with LlamaIndex workflows and LlamaCloud services.
4+
5+
6+
This application uses LlamaDeploy. For more information see [the docs](https://developers.llamaindex.ai/python/cloud/llamadeploy/getting-started)
7+
8+
# Getting Started
9+
10+
1. install `uv` if you haven't `brew install uv`
11+
2. run `uvx llamactl serve`
12+
3. Visit http://localhost:4501/docs and see workflow APIs
13+
14+
15+
# Organization
16+
17+
- `src` contains python workflow sources. The name of the deployment here is defined as `document-qa`requests. See http://localhost:4501/docs for openAPI docs

copier.yaml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# questions
2+
project_name:
3+
type: str
4+
help: What is your project name? This will be used as an identifier. Must only contain letters, numbers, or dashes.
5+
default: "{{ _folder_name | regex_replace('[^a-zA-Z0-9-]', '-') | regex_replace('-+', '-') | regex_replace('^-|-$', '') }}"
6+
validator: |-
7+
{% if not project_name.replace("-", "").isalnum() %}
8+
Project name must contain only letters, numbers, and dashes
9+
{% endif %}
10+
11+
llama_project_id:
12+
type: str
13+
help: What is your Llama Cloud project ID?
14+
default: ""
15+
required: true
16+
17+
llama_org_id:
18+
type: str
19+
help: What is your Llama Cloud organization ID?
20+
default: ""
21+
required: true
22+
23+
# computed variables
24+
project_name_snake:
25+
type: str
26+
default: "{{ project_name.replace('-', '_') }}"
27+
when: false
28+
29+
project_title:
30+
type: str
31+
default: "{{ (project_name.replace('-', ' '))[:1] | upper ~ (project_name.replace('-', ' '))[1:] }}"
32+
when: false
33+
34+
_exclude:
35+
- "test-proj"
36+
- ".git"
37+
- ".github"
38+
- "copier"
39+
- "CONTRIBUTING.md"
40+
- "copier.yaml"

0 commit comments

Comments
 (0)