-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from 0xsarwagya/main
Update CONTRIBUTING.md, Add Routes, and Improve UI
- Loading branch information
Showing
65 changed files
with
2,565 additions
and
175 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"$schema": "https://ui.shadcn.com/schema.json", | ||
"style": "new-york", | ||
"rsc": true, | ||
"tsx": true, | ||
"tailwind": { | ||
"config": "tailwind.config.ts", | ||
"css": "src/app/globals.css", | ||
"baseColor": "zinc", | ||
"cssVariables": true, | ||
"prefix": "" | ||
}, | ||
"aliases": { | ||
"components": "@/components", | ||
"utils": "@/lib/utils", | ||
"ui": "@/components/ui", | ||
"lib": "@/lib", | ||
"hooks": "@/hooks" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
version: '3.8' | ||
|
||
services: | ||
ollama: | ||
build: | ||
context: . | ||
dockerfile: ./docker/Dockerfile.ollama | ||
ports: [ "11434:11434" ] | ||
volumes: | ||
- ollama_data:/root/.ollama | ||
networks: | ||
- net | ||
|
||
volumes: | ||
ollama_data: | ||
driver: local | ||
|
||
networks: | ||
net: | ||
driver: bridge |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Use the Ollama base image as the builder stage | ||
FROM ollama/ollama as builder | ||
|
||
# Copy the setup script from the local 'scripts' directory to the root of the container | ||
COPY ./scripts/setup-ollama.sh ./setup-ollama.sh | ||
|
||
# Execute the setup script to configure the Ollama environment | ||
RUN bash ./setup-ollama.sh | ||
|
||
# Start a new stage from the Ollama base image to create the final image | ||
FROM ollama/ollama | ||
|
||
# Copy the configured Ollama setup from the builder stage to the final image | ||
COPY --from=builder /root/.ollama /root/.ollama | ||
|
||
# Expose port 11434 for external access to the application | ||
EXPOSE 11434 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import createMDX from "@next/mdx"; | ||
|
||
/** | ||
* @type {import('next').NextConfig} | ||
*/ | ||
const nextConfig = { | ||
pageExtensions: ["mdx", "ts", "tsx"], | ||
eslint: { | ||
ignoreDuringBuilds: true, | ||
}, | ||
typescript: { | ||
ignoreBuildErrors: true, | ||
}, | ||
}; | ||
|
||
const withMDX = createMDX({ | ||
extension: /\.mdx?$/, | ||
}); | ||
|
||
export default withMDX(nextConfig); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/usr/bin/env bash | ||
# This line indicates that the script should be run using the Bash shell. | ||
# It uses /usr/bin/env to locate Bash in the user's environment. | ||
|
||
# Start the Ollama server in the background | ||
ollama serve & | ||
|
||
# Pause the script for 10 seconds to allow the server to initialize | ||
sleep 10 | ||
|
||
# Pull the 'orca-mini' model from the Ollama repository | ||
ollama pull qwen2.5:1.5b |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import type { MDXComponents } from "mdx/types"; | ||
|
||
export function useMDXComponents(components: MDXComponents): MDXComponents { | ||
console.log("components", components); | ||
return { | ||
...components, | ||
h1: (props) => <h1 style={{ color: "tomato" }} />, | ||
h2: (props) => <h2 style={{ color: "tomato" }} />, | ||
h3: (props) => <h3 style={{ color: "tomato" }} />, | ||
h4: (props) => <h4 style={{ color: "tomato" }} />, | ||
h5: (props) => <h5 style={{ color: "tomato" }} />, | ||
h6: (props) => <h6 style={{ color: "tomato" }} />, | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { ContentLayout } from "@/components/admin-panel/content-layout"; | ||
import Image from "next/image"; | ||
|
||
export default function AddToKnowledgeBase() { | ||
return ( | ||
<ContentLayout title="Add To Knowledge Base"> | ||
<div className="flex flex-col items-center justify-center w-full h-full space-y-4"> | ||
<Image src="/logo.svg" alt="Rebackk Logo" width={100} height={100} /> | ||
<h1 className="text-4xl font-bold text-center"> | ||
Rebackk RAG Demo | Add To Knowledge Base | ||
</h1> | ||
<p className="text-lg text-center"> | ||
Add a new knowledge base entry to the Rebackk RAG Demo. The entry will | ||
be used to train the model and improve the generation of responses | ||
tailored to the user's input. | ||
</p> | ||
</div> | ||
</ContentLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ContentLayout } from "@/components/admin-panel/content-layout"; | ||
import Image from "next/image"; | ||
|
||
export default function ListKnowledgeBase() { | ||
return ( | ||
<ContentLayout title="Knowledge Base List"> | ||
<div className="flex flex-col items-center justify-center w-full h-full space-y-4"> | ||
<Image | ||
src="/logo.svg" | ||
alt="Rebackk Logo" | ||
width={100} | ||
height={100} | ||
/> | ||
<h1 className="text-4xl font-bold text-center"> | ||
Rebackk RAG Demo | Knowledge Base List | ||
</h1> | ||
<p className="text-lg text-center"> | ||
View the knowledge base entries in the Rebackk RAG Demo. The entries | ||
are used to train the model and improve the generation of responses | ||
tailored to the user's input. | ||
</p> | ||
</div> | ||
</ContentLayout> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ContentLayout } from "@/components/admin-panel/content-layout"; | ||
import Image from "next/image"; | ||
|
||
export default function RemoveFromKnowledgeBase() { | ||
return ( | ||
<ContentLayout title="Remove From Knowledge Base"> | ||
<div className="flex flex-col items-center justify-center w-full h-full space-y-4"> | ||
<Image | ||
src="/logo.svg" | ||
alt="Rebackk Logo" | ||
width={100} | ||
height={100} | ||
/> | ||
<h1 className="text-4xl font-bold text-center"> | ||
Rebackk RAG Demo | Remove From Knowledge Base | ||
</h1> | ||
<p className="text-lg text-center"> | ||
Remove a knowledge base entry from the Rebackk RAG Demo. The entry will | ||
be removed from the training data and will no longer be used to generate | ||
responses tailored to the user's input. | ||
</p> | ||
</div> | ||
</ContentLayout> | ||
); | ||
} |
Oops, something went wrong.