Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v0.0.3 #19

Merged
merged 25 commits into from
Feb 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
5341ebf
🧪 asyncify tests
hyusap Jan 31, 2024
942137f
✨ asyncify client
hyusap Jan 31, 2024
387fb66
Basic Test for Page based pagination
VVoruganti Feb 6, 2024
410f914
add sync buildstep and client
hyusap Feb 6, 2024
4495fdf
add vscode DX
hyusap Feb 6, 2024
6033f71
Added Testing for generators and updated examples
VVoruganti Feb 6, 2024
2a3d9f7
feat: example updates
vintrocode Feb 7, 2024
1c9ee99
Merge pull request #10 from plastic-labs/vscode
VVoruganti Feb 7, 2024
d59e1ee
readme exists now
vintrocode Feb 7, 2024
4f650d3
Stylistic changes and generic message
VVoruganti Feb 8, 2024
31d895f
Merge pull request #13 from plastic-labs/vineeth/dev-153
VVoruganti Feb 8, 2024
74199c1
Merge branch 'staging' into ayush/dev-153
VVoruganti Feb 8, 2024
785dd36
Merge pull request #8 from plastic-labs/ayush/dev-153
VVoruganti Feb 8, 2024
870995d
Merge pull request #12 from plastic-labs/vince/example-updates
VVoruganti Feb 8, 2024
0438edb
Merge branch 'staging' into vineeth/dev-154
VVoruganti Feb 8, 2024
8a750a6
Merge pull request #11 from plastic-labs/vineeth/dev-154
VVoruganti Feb 8, 2024
3fd1bf9
Metamessages with other refactoring - untested
VVoruganti Feb 8, 2024
3926aaf
Work with unit tests
VVoruganti Feb 8, 2024
ddaa311
Fix Examples
VVoruganti Feb 8, 2024
a7373d1
MEME-78 Update Changelogs
VVoruganti Feb 8, 2024
f99f1e8
Docstrings to client
VVoruganti Feb 8, 2024
061dd83
Merge pull request #14 from plastic-labs/vineeth/dev-181
VVoruganti Feb 8, 2024
fcde94e
🧪 autogenerate sync tests (#16)
hyusap Feb 15, 2024
8421fda
Vector Support (#18)
VVoruganti Feb 15, 2024
e8730df
Merge branch 'main' into staging
VVoruganti Feb 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Honcho
![Static Badge](https://img.shields.io/badge/Version-0.0.2-blue)
![Static Badge](https://img.shields.io/badge/Version-0.0.3-blue)
[![Discord](https://img.shields.io/discord/1016845111637839922?style=flat&logo=discord&logoColor=23ffffff&label=Plastic%20Labs&labelColor=235865F2)](https://discord.gg/plasticlabs)
![GitHub License](https://img.shields.io/github/license/plastic-labs/honcho)
![GitHub Repo stars](https://img.shields.io/github/stars/plastic-labs/honcho)
Expand Down Expand Up @@ -50,14 +50,21 @@ poetry install # install dependencies
connection_uri. For testing sqlite is fine. The below example uses an
in-memory sqlite database.

> Honcho has been tested with Postgresql and SQLite
> Honcho has been tested with Postgresql and PGVector

```env
DATABASE_TYPE=sqlite
CONNECTION_URI=sqlite://
DATABASE_TYPE=postgres
CONNECTION_URI=postgresql://testuser:testpwd@localhost:5432/honcho
```

3. Run the API via uvicorn
3. launch a postgresd with pgvector enabled with docker-compose

```bash
cd honcho/api/local
docker-compose up -d
```

4. Run the API via uvicorn

```bash
cd honcho/api # change to the api directory
Expand Down Expand Up @@ -86,7 +93,7 @@ Docs](https://fly.io/docs/getting-started/) to setup your environment and the
`flyctl`.


Once `flyctl` is set up use the the following commands to launch the application:
Once `flyctl` is set up use the following commands to launch the application:

```bash
cd honcho/api
Expand Down
5 changes: 5 additions & 0 deletions api/.env.template
Original file line number Diff line number Diff line change
@@ -1,2 +1,7 @@
DATABASE_TYPE=sqlite
CONNECTION_URI=sqlite://

DATABASE_TYPE=postgres
CONNECTION_URI=postgresql://testuser:testpwd@localhost:5432/honcho

OPENAI_API_KEY=
16 changes: 16 additions & 0 deletions api/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,22 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/)
and this project adheres to [Semantic Versioning](http://semver.org/).

## [0.0.3] — 2024-02-15

### Added

* Collections table to reference a collection of embedding documents
* Documents table to hold vector embeddings for RAG workflows
* Local scripts for running a postgres database with pgvector installed
* OpenAI Dependency for embedding models
* PGvector dependency for vector db support

### Changed

* session_data is now metadata
* session_data is a JSON field used python `dict` for compatability


## [0.0.2] — 2024-02-01

### Added
Expand Down
14 changes: 14 additions & 0 deletions api/local/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
services:
db:
hostname: db
image: ankane/pgvector
ports:
- 5432:5432
restart: always
environment:
- POSTGRES_DB=honcho
- POSTGRES_USER=testuser
- POSTGRES_PASSWORD=testpwd
- POSTGRES_HOST_AUTH_METHOD=trust
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/init.sql
1 change: 1 addition & 0 deletions api/local/init.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE EXTENSION IF NOT EXISTS vector;
492 changes: 317 additions & 175 deletions api/poetry.lock

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "honcho"
version = "0.0.2"
version = "0.0.3"
description = "Honcho Server"
authors = ["Plastic Labs <[email protected]>"]
readme = "README.md"
Expand All @@ -14,6 +14,8 @@ sqlalchemy = "^2.0.25"
psycopg2-binary = "^2.9.9"
slowapi = "^0.1.8"
fastapi-pagination = "^0.12.14"
pgvector = "^0.2.5"
openai = "^1.12.0"


[build-system]
Expand Down
Loading