Skip to content
/ seifer Public

Golang User Story Recommendation/Query Engine

Notifications You must be signed in to change notification settings

bao1018/seifer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Seifer

Golang User Story Recommendation/Query Engine

Related repos:

https://github.com/bao1018/gpt-2-master

Overall Tech Arch Diagram

Image of Arch Design

Install

Golang 1.12 and make go_mod be ON

  1. Create a DB called selfile in Postgres
  2. Run the DDL SQL to create the DB table
/migration/000001_create_story_table.up.sql
  1. Add config.json in root directory with below reference
{
    "addr": "127.0.0.1",
    "port": "2333",
    "database": {
        "connection": "postgresql://pguser:pgpassword@localhost/seifer"
    }
}
  1. Run below commands to install/run the go server
go run main.go
  1. Test the API Try below to test the API
curl -X POST \
http://localhost:2333/user_story/similar \
-H 'Accept: */*' \
-H 'Content-Length: 377' \
-H 'Content-Type: application/json' \
-d '{
"title":"Lockbox / Receipt",
"body":" As a ClientABC Employee"
}'

About

Golang User Story Recommendation/Query Engine

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published