Skip to content

Commit

Permalink
✨ Rag + salesforce
Browse files Browse the repository at this point in the history
  • Loading branch information
naelob committed Sep 13, 2024
1 parent f791257 commit 012ec01
Show file tree
Hide file tree
Showing 101 changed files with 13,392 additions and 4,451 deletions.
51 changes: 48 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,17 @@ BOX_FILESTORAGE_CLOUD_CLIENT_SECRET=
ONEDRIVE_FILESTORAGE_CLOUD_CLIENT_ID=
ONEDRIVE_FILESTORAGE_CLOUD_CLIENT_SECRET=

# Google Drive
GOOGLEDRIVE_FILESTORAGE_CLOUD_CLIENT_ID=
GOOGLEDRIVE_FILESTORAGE_CLOUD_CLIENT_SECRET=

# Google Drive
SHAREPOINT_FILESTORAGE_CLOUD_CLIENT_ID=
SHAREPOINT_FILESTORAGE_CLOUD_CLIENT_SECRET=

# Google Drive
DROPBOX_FILESTORAGE_CLOUD_CLIENT_ID=
DROPBOX_FILESTORAGE_CLOUD_CLIENT_SECRET=

# ================================================
# HRIS
Expand Down Expand Up @@ -153,8 +164,42 @@ SQUARESPACE_ECOMMERCE_CLOUD_CLIENT_SECRET=
# Webapp settings
# Must be set in the perspective of the end user browser

NEXT_PUBLIC_BACKEND_DOMAIN=http://localhost:3000 # https://api.panora.dev/
NEXT_PUBLIC_BACKEND_DOMAIN=http://localhost:3000
NEXT_PUBLIC_MAGIC_LINK_DOMAIN=http://localhost:81
NEXT_PUBLIC_WEBAPP_DOMAIN="http://localhost"
NEXT_PUBLIC_DISTRIBUTION="selfhost" # selfhost or managed
NEXT_PUBLIC_WEBAPP_DOMAIN=http://localhost
NEXT_PUBLIC_DISTRIBUTION=selfhost # selfhost or managed



# VEC DBs
## pinecone
PINECONE_API_KEY=
PINECONE_INDEX_NAME=

## qdrant
QDRANT_BASE_URL=
QDRANT_API_KEY=
## chroma
CHROMADB_URL=
## weaviate
WEAVIATE_URL=
WEAVIATE_API_KEY=
# turbopuffer
TURBOPUFFER_API_KEY=
# milvus
MILVUS_ADDRESS=

# EMBEDDINGS
JINA_API_KEY=
COHERE_API_KEY=
OPENAI_API_KEY=

# ================================================
# Minio (s3 file storage for documents)
# ================================================
MINIO_ROOT_USER=myaccesskey13
MINIO_ROOT_PASSWORD=mysecretkey12

UNSTRUCTURED_API_KEY=
UNSTRUCTURED_API_URL=

Binary file added apps/webapp/public/rag/chroma.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/chroma.webp
Binary file not shown.
Binary file added apps/webapp/public/rag/cohere.jpeg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/cohere.webp
Binary file not shown.
Binary file added apps/webapp/public/rag/openai.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/openai.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/pinecone.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/qdrant.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/turbopuffer.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/webapp/public/rag/turbopuffer.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/weaviate.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added apps/webapp/public/rag/weaviate.webp
Binary file not shown.
11 changes: 9 additions & 2 deletions apps/webapp/src/app/(Dashboard)/configuration/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ import usePullFrequencies from "@/hooks/get/useGetPullFrequencies";
import useUpdatePullFrequency from "@/hooks/create/useCreatePullFrequency";
import { toast } from "sonner";
import { useQueryClient } from "@tanstack/react-query";
import { Badge } from "@/components/ui/badge";
import { Loader2 } from "lucide-react";
import { RAGSettingsPage } from "@/components/Configuration/RAGSettings/RAGSettingsPage";

const frequencyOptions = [
{ label: '5 min', value: 300 },
Expand Down Expand Up @@ -178,6 +178,7 @@ export default function Page() {
<TabsTrigger value="pull-frequency">
Sync Frequency
</TabsTrigger>
<TabsTrigger value="rag-settings">RAG Settings</TabsTrigger>
<TabsTrigger value="catalog">
Manage Catalog Widget
</TabsTrigger>
Expand Down Expand Up @@ -260,7 +261,9 @@ export default function Page() {
</Select>
<Button
onClick={() => saveFrequency(vertical)}
disabled={loadingStates[vertical]}
disabled={loadingStates[vertical]}
size="sm"
className="h-7 gap-1"
>
{loadingStates[vertical] ? (
<Loader2 className="mr-2 h-4 w-4 animate-spin" />
Expand Down Expand Up @@ -350,6 +353,10 @@ export default function Page() {
</div>
</TabsContent>

<TabsContent value="rag-settings" className="space-y-4">
<RAGSettingsPage />
</TabsContent>

<TabsContent value="custom" className="space-y-4">
<CustomConnectorPage />
</TabsContent>
Expand Down
Loading

0 comments on commit 012ec01

Please sign in to comment.