Skip to content

minitheguitarist/Chatbot-for-Website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chatbot Project

This project consists of two parts:

Backend: Python-based service that runs the AI Frontend: User interface (React)

Project Structure: backend/App.py → Chatbot backend file frontend/src/components/Chatbot.css → Chatbot styling frontend/src/components/Chatbot.jsx → Chatbot component

------ Running the Project: ------

Start the Backend From the command line, navigate to the backend folder: cd backend python App.py This will run the AI and start the server.

Start the Frontend In another command line window, navigate to the frontend folder: cd frontend npm start This will open a local website via localhost.

Usage: Open the given localhost address in your browser to test the Chatbot interface.

Notes:

I have backed up the previous code and prompts in a separate file.

I discovered a new issue: sometimes the chatbot’s responses are too long. Because of the layout I designed, very long responses can occasionally cause syntax errors. The output then looks messy and poorly formatted.

For Turkish

Chatbot Projesi

Bu proje iki kısımdan oluşur:

Backend: Yapay zekayı çalıştıran Python tabanlı servis

Frontend: Kullanıcı arayüzü (React)

Proje Yapısı: backend/App.py → Chatbot backend dosyası deneme-ui/src/components/Chatbot.css → Chatbot tasarım stilleri deneme-ui/src/components/Chatbot.jsx → Chatbot bileşeni

------Çalıştırma:------

Backend’i Başlat Komut isteminden backend klasörüne gir: cd backend python App.py Bu işlem yapay zekayı çalıştırır ve server'ı başlatır.

Frontend’i Başlat Başka bir komut isteminde deneme-ui klasörüne gir: cd deneme-ui npm start Bu işlem yerel olarak localhost üzerinden bir web sitesi açar.

Kullanım: Tarayıcıda verilen localhost adresine giderek Chatbot arayüzünü test edebilirsiniz.

Not: 1)Daha önce kullanıdığım kodlar ve promptlar ayrı bir dosyada yedekledim. 2)yeni bir sorun keşfettim, chatbot'un verdiği cevaplar bazen çok olabiliyor. Tasarladığım alan yüzünden nadiren uzun verdiği mesaajlarda syntax hatası olabiliyor. verdiği cevap düzensiz ve kötü gözükebiliyor.

About

It uses a locally deployed web-based AI assistant powered by OpenAI OSS 20B.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors