mirror of
https://github.com/NVIDIA/dgx-spark-playbooks.git
synced 2026-04-23 18:33:54 +00:00
46 lines
1.9 KiB
TypeScript
46 lines
1.9 KiB
TypeScript
//
|
|
// SPDX-FileCopyrightText: Copyright (c) 1993-2025 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
//
|
|
import { DocumentsTable } from "@/components/documents-table";
|
|
import { DocumentProcessor } from "@/components/document-processor";
|
|
|
|
export default function DocumentDataPage() {
|
|
return (
|
|
<div className="container mx-auto py-8">
|
|
<h1 className="text-2xl font-bold mb-6">Document Knowledge Graph Builder</h1>
|
|
<p className="mb-4 text-muted-foreground">
|
|
Process documents to extract knowledge triples and generate embeddings using LangChain.
|
|
</p>
|
|
|
|
<div className="grid grid-cols-1 xl:grid-cols-3 gap-8">
|
|
<div className="xl:col-span-1">
|
|
<DocumentProcessor className="sticky top-8" />
|
|
</div>
|
|
<div className="xl:col-span-2">
|
|
<div className="bg-card rounded-lg border border-border shadow-sm overflow-hidden">
|
|
<div className="p-5 border-b border-border">
|
|
<h2 className="text-xl font-semibold">Documents</h2>
|
|
<p className="text-sm text-muted-foreground mt-1">
|
|
Manage your documents and generate embeddings directly from the table
|
|
</p>
|
|
</div>
|
|
<DocumentsTable />
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|