Skip to content

janfiszer/archi-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Archi-chat

This is a two-day project, being the first step for building a chat that can help architects get easier and verified information from Polish construction law, giving them more time for the fun stuff!

Context

GPT sometimes messes up with answering the question about construction law but this tool allows the user to prompt a model and get the answer with the context from Polish construction law.

Currently tested with an architect with 15-years professional experience...

Installation

This project creates a vector database from PDF files using Google's Gemini embedding API and ChromaDB for semantic search.

Prerequisites

  • Python 3.12 or higher
  • Git
  • Google AI API key (Get one here)

1. Clone the Repository

git clone https://github.com/janfiszer/archi-chat.git
cd archi-chat

2. Create venv

On macOS/Linux:

python3 -m venv venv
source venv/bin/activate

On Windows:

python -m venv venv
venv\Scripts\activate

3. Install Dependencies

pip install -r requirements.txt

4. Configure

Configure files in ./config. Most importantly:

  1. Google api key: API_KEY in .config/local.py
  2. Input context file: CONTEXT_FILEPATH in .config/paths.py

The other parameters are tuned for current application, but feel free to experiment.

6. Run the Application

python app.py "Czy na tablicy informacyjnej określa się adres inwestora?" 

Example usage

Input:

Czy na tablicy informacyjnej określa się adres inwestora?

Found context (the most similar chunk):

1. Art. 45b. 1. Na tablicy informacyjnej określa się: 
1) 
rodzaj robót budowlanych i adres prowadzenia tych robót; 
2) 
datę i numer decyzji o pozwoleniu na budowę lub dokonanego zgłoszenia; 
3) 
organ wydający decyzję o pozwoleniu na budowę lub rozpatrujący zgłoszenie; 
4) 
nazwę i numer telefonu właściwego organu nadzoru budowlanego; 
5) 
imię i nazwisko lub nazwę i numer telefonu inwestora; 
6) 
imię i nazwisko oraz numer telefonu kierownika budowy. 
...

Answer:

Na tablicy informacyjnej określa się imię i nazwisko lub nazwę oraz numer telefonu inwestora, ale nie adres inwestora.

About

LLMs sometimes screws up with answering the question about construction law so let's deal with it!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages