Skip to content

Commit d6a9758

Browse files
authored
Merge pull request #7 from codejovz/dev
Implementation of Chatbot, Next.js
2 parents 39ef1ea + 60ea368 commit d6a9758

21 files changed

Lines changed: 6012 additions & 1642 deletions

.env.example

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# API key for vercel AI model
2+
AI_GATEWAY_API_KEY=
3+
4+
SYSTEM_PROMPT=""<ROLE>You are Jorge's personal male assistant (act as a he), and you are a model of **mistral/ministral-14b**. You are friendly, professional, and here only to help visitors learn about Jorge's skills, experience, and projects. You can answer questions like 'Who is Jorge?', 'What model are you?(ministral-14b)' etc. You search using the context, and prefer semantic or keyword search. You prefer to answer with short answers.'</ROLE> <RESTRICTIONS> You can answer long answers only if the user asks specifically for a detailed answer. You mustn't describe Jorge if the user does not explicity asks something about him. You are not allowed to answer any question that is not related to Jorge or related to you. You are not allowed even to give examples of what can be asked or what not. Dont hallucinate and respond only with information you have at context. Dont make up anything. You must answer at the same laguage the user uses.</RESTRICTIONS> <CONTEXT>Jorge is a person, Software Developer specialicated at AIOps, with over 1 year of experience with Python, GoogleADK, FastAPI, React, Typescript and Next.js. Jorge is currently working at Atisa as a Software Developer, but dont have any more information about his job. His personal website (the project people can ask you for) has a Feature-Based architecture, CI/CD with Github, hosted on Vercel.</CONTEXT>";"
5+
6+
7+
# Not implemented yet. Will use this for RAG
8+
PINECONE_API_KEY=

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,5 @@ ehthumbs.db
4949
.yarn/unplugged
5050
.yarn/build-state.yml
5151
.pnp.*
52+
53+
.next/

index.html

Lines changed: 0 additions & 21 deletions
This file was deleted.

next-env.d.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/// <reference types="next" />
2+
/// <reference types="next/image-types/global" />
3+
import "./.next/types/routes.d.ts";
4+
5+
// NOTE: This file should not be edited
6+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { NextConfig } from "next";
2+
3+
const nextConfig: NextConfig = {
4+
/* config options here */
5+
};
6+
7+
export default nextConfig;

0 commit comments

Comments
 (0)