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: add local worker as llm in app #354

Merged
merged 1 commit into from
Dec 12, 2023
Merged

Conversation

Abirdcfly
Copy link
Collaborator

@Abirdcfly Abirdcfly commented Dec 12, 2023

What type of PR is this?

/kind feature
/kind cleanup

What this PR does / why we need it

  1. Use the namespace of CRDs in the same LLM application, not apiserver's pod namespace
// GetNamespace returns the namespace:
// 1. if TypedObjectReference.namespace is not nil, return it
// 2. if defaultNamespace is not empty, return it
// 3. return env: POD_NAMESPACE value, usually operator's namespace
  1. add new package(Place it in an existing package get a circular dependency error) pkg/langchainwrap add two func GetLangchainLLM and GetLangchainEmbedder Convert CRD to langchain's interface.
  2. app orchestration now also supports local worker llm.

Which issue(s) this PR fixes

Fixes #346

Special notes for your reviewer

@bjwswang bjwswang merged commit f01eaeb into kubeagi:main Dec 12, 2023
8 checks passed
@Abirdcfly Abirdcfly deleted the localllm branch December 12, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve application run logic
2 participants