An open API service indexing awesome lists of open source software.

https://github.com/asifrahaman13/knowledgebase

The project aims to retrieve meaningful information from different knowledgebase like pdfs, web, docs, etc. Its currently in progress state.
https://github.com/asifrahaman13/knowledgebase

fastapi langchain mongodb nextjs openai python

Last synced: 3 months ago
JSON representation

The project aims to retrieve meaningful information from different knowledgebase like pdfs, web, docs, etc. Its currently in progress state.

Awesome Lists containing this project

README

          

# About the application

First clone the repository:

```bash
git clone https://github.com/asifrahaman13/knowledgebase.git
```

## Backend

Next enter into the backend directory.

```
cd knowledgevase_backend/
```

Create a virtual environment.

```
virtualenv .venv
```

Activate the virtual environment. In unix based system like the Linux or Mac OS you can follow the following commands:

```
source .venv/bin/activate
```

Now install the required dependencies.

```
pip install -r requirements.txt
```

Rename the .env.example file to .env file.

In Unix based system you can use the following:

```bash
mv .env.example .env
```

In windows you can manually do the same.

Next update the required values in the .env file.

You need to enter the data into the .env file.

Now run the backend server.

```
uvicorn main:app --reload
```

Make sure the backend runs on port 8000.

## Frontend

Next enter into the front end.

```
cd knowdledgebase_frontend/
```

Install the dependencies

```
bun install
```

Rename the .env.example file to .env file.

In Unix based system you can use the following:

```bash
mv .env.example .env
```

In windows you can manually do the same.

Next update the required values in the .env file.

Run the development server:

```
bun run dev
```

Front end will run on port 3000