Skip to content

Commit

Permalink
dont show non-available components
Browse files Browse the repository at this point in the history
  • Loading branch information
thomashacker committed Sep 3, 2024
1 parent 56a5174 commit 5e5afbf
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions frontend/app/components/Ingestion/ComponentView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -128,8 +128,9 @@ const ComponentView: React.FC<ComponentViewProps> = ({
skip_component,
}) => {
function renderComponents(rag_config: RAGConfig) {
return Object.entries(rag_config[component_name].components).map(
([key, component]) => (
return Object.entries(rag_config[component_name].components)
.filter(([key, component]) => component.available)
.map(([key, component]) => (
<li
key={"ComponentDropdown_" + component.name}
onClick={() => {
Expand All @@ -141,8 +142,7 @@ const ComponentView: React.FC<ComponentViewProps> = ({
>
<a>{component.name}</a>
</li>
)
);
));
}
function renderConfigOptions(rag_config: RAGConfig, configKey: string) {
return rag_config[component_name].components[
Expand Down
2 changes: 1 addition & 1 deletion goldenverba/components/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
JSONChunker(),
]
embedders = [
SentenceTransformersEmbedder(),
OllamaEmbedder(),
SentenceTransformersEmbedder(),
WeaviateEmbedder(),
VoyageAIEmbedder(),
CohereEmbedder(),
Expand Down

0 comments on commit 5e5afbf

Please sign in to comment.