Skip to content
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

feat: implement selector to configure LlamaCloud parameters #200

Merged
merged 38 commits into from
Aug 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
f3f8fa4
feat: call APIs to get llamacloud projects and pipelines
thucpn Aug 1, 2024
39282dc
feat: update chat config API to response llamacloud config
thucpn Aug 1, 2024
eac3d74
feat: add shadcn select component
thucpn Aug 1, 2024
d39ffda
feat: render llamacloud pipeline options
thucpn Aug 1, 2024
9e0a303
feat: update llamacloud service to manage config
thucpn Aug 1, 2024
8c99b76
feat: update chat config API to get and update llamacloud config
thucpn Aug 1, 2024
27a2a05
feat: update llamacloud datasource to use config json
thucpn Aug 1, 2024
a759447
feat: able to change config from UI
thucpn Aug 1, 2024
b5581d5
feat: add should fetch options to reduce requests
thucpn Aug 1, 2024
6f694b6
fix: update style of selector
thucpn Aug 1, 2024
d11d71e
Create quick-walls-switch.md
thucpn Aug 1, 2024
90c3ca1
feat: update UI to send pipeline config via request body
thucpn Aug 2, 2024
5bc6937
refactor: don't use config from json file
thucpn Aug 2, 2024
37cef3e
feat: pass configs from chat request to datasource
thucpn Aug 2, 2024
c1deb40
style: enhance UI llamacloud selector
thucpn Aug 2, 2024
3dbfc8a
refactor: remove this and use class name
thucpn Aug 2, 2024
1534343
docs: update change log
thucpn Aug 2, 2024
6a1730f
refactor: use type instead of interface
thucpn Aug 2, 2024
38b6434
refactor: params instead of configs
thucpn Aug 2, 2024
38a1065
fix: add params to agent and simple vector store
thucpn Aug 2, 2024
1014f34
docs: message
thucpn Aug 2, 2024
9702c38
refactor: move logic to useLlamaCloud and split apis
thucpn Aug 2, 2024
f698b9b
update chat input
thucpn Aug 2, 2024
d0454a8
feat: add llamacloud config api for express
thucpn Aug 2, 2024
fb93572
fix: update express chat stream controller
thucpn Aug 2, 2024
a282665
feat: support llamacloud config in Python
thucpn Aug 5, 2024
8143c46
refactor: add optional params to get datasouce function
thucpn Aug 5, 2024
73ad38d
feat: return default option from env
thucpn Aug 5, 2024
042fee2
refactor: clean up
thucpn Aug 5, 2024
a3f921d
fix: using llamacloud from env
thucpn Aug 5, 2024
8fe83cf
refactor: remove usellamacloud
thucpn Aug 5, 2024
fc0192f
refactor: make chat request type any
thucpn Aug 5, 2024
9c0b143
refactor: do not pass request data
thucpn Aug 5, 2024
0d8160f
fix: generation of env variables
marcusschiesser Aug 5, 2024
2960079
fix: check if LlamaCloud config is valid
marcusschiesser Aug 5, 2024
df2b9ab
fix: compile error
marcusschiesser Aug 5, 2024
bf66fc3
fix: e2e test
marcusschiesser Aug 5, 2024
52850a4
fix: e2e test
marcusschiesser Aug 5, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@ export default function ChatMessages(
"messages" | "isLoading" | "reload" | "stop" | "append"
>,
) {
const { starterQuestions } = useClientConfig({
shouldFetchConfig: true,
});
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah my bad! Thank you for fixing it

const { starterQuestions } = useClientConfig();
const scrollableChatContainerRef = useRef<HTMLDivElement>(null);
const messageLength = props.messages.length;
const lastMessage = props.messages[messageLength - 1];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ export function LlamaCloudSelector({
<SelectValue placeholder="Select a pipeline" />
</SelectTrigger>
<SelectContent>
{projects.map((project: LLamaCloudProject) => (
{projects!.map((project: LLamaCloudProject) => (
<SelectGroup key={project.id}>
<SelectLabel className="capitalize">
Project: {project.name}
Expand All @@ -126,7 +126,7 @@ export function LlamaCloudSelector({
}

function isValid(config: LlamaCloudConfig): boolean {
const { projects, pipeline } = config ?? {};
const { projects, pipeline } = config;
if (!projects?.length) return false;
if (!pipeline) return false;
const matchedProject = projects.find(
Expand Down
Loading