这是indexloc提供的服务,不要输入任何密码
Skip to content

Llama Stack Integration #3857

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

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
@@ -0,0 +1,23 @@
export default function LlamaStackOptions({ settings }) {
return (
<div className="w-full flex flex-col gap-y-7">
<div className="w-full flex items-center gap-[36px] mt-1.5">
<div className="flex flex-col w-60">
<label className="text-white text-sm font-semibold block mb-3">
LlamaStack Endpoint
</label>
<input
type="text"
name="LlamaStackEndpoint"
className="border-none bg-theme-settings-input-bg text-white placeholder:text-theme-settings-input-placeholder text-sm rounded-lg focus:outline-primary-button active:outline-primary-button outline-none block w-full p-2.5"
placeholder="http://localhost:8321"
defaultValue={settings?.LlamaStackEndpoint || "http://localhost:8321"}
required={true}
autoComplete="off"
spellCheck={false}
/>
</div>
</div>
</div>
);
}
Binary file added frontend/src/media/vectordbs/llamastack.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions frontend/src/pages/GeneralSettings/VectorDatabase/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import ModalWrapper from "@/components/ModalWrapper";
import VectorDBItem from "@/components/VectorDBSelection/VectorDBItem";

import LanceDbLogo from "@/media/vectordbs/lancedb.png";
import LlamaStackLogo from "@/media/vectordbs/llamastack.png";
import ChromaLogo from "@/media/vectordbs/chroma.png";
import PineconeLogo from "@/media/vectordbs/pinecone.png";
import WeaviateLogo from "@/media/vectordbs/weaviate.png";
Expand All @@ -31,6 +32,7 @@ import MilvusDBOptions from "@/components/VectorDBSelection/MilvusDBOptions";
import ZillizCloudOptions from "@/components/VectorDBSelection/ZillizCloudOptions";
import AstraDBOptions from "@/components/VectorDBSelection/AstraDBOptions";
import PGVectorOptions from "@/components/VectorDBSelection/PGVectorOptions";
import LlamaStackOptions from "@/components/VectorDBSelection/LlamaStackOptions";

export default function GeneralVectorDatabase() {
const [saving, setSaving] = useState(false);
Expand Down Expand Up @@ -177,6 +179,13 @@ export default function GeneralVectorDatabase() {
options: <AstraDBOptions settings={settings} />,
description: "Vector Search for Real-world GenAI.",
},
{
name: "LlamaStack",
value: "llamastack",
logo: LlamaStackLogo,
options: <LlamaStackOptions settings={settings} />,
description: "Stack to build RAG with Llama",
},
];

const selectedVDBObject = VECTOR_DBS.find((vdb) => vdb.value === selectedVDB);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ import VoyageAiLogo from "@/media/embeddingprovider/voyageai.png";
import PPIOLogo from "@/media/llmprovider/ppio.png";
import PGVectorLogo from "@/media/vectordbs/pgvector.png";
import DPAISLogo from "@/media/llmprovider/dpais.png";
import LlamaStackLogo from "@/media/vectordbs/llamastack.png";
import React, { useState, useEffect } from "react";
import paths from "@/utils/paths";
import { useNavigate } from "react-router-dom";
Expand Down Expand Up @@ -311,6 +312,14 @@ export const VECTOR_DB_PRIVACY = {
],
logo: LanceDbLogo,
},
llamastack: {
name: "LlamaStack",
description: [
"Your vectors and document text are stored on your LlamaStack instance.",
"Access to your instance is managed by you.",
],
logo: LlamaStackLogo,
},
};

export const EMBEDDING_ENGINE_PRIVACY = {
Expand Down
Loading