Versions in this module Expand all Collapse all v0 v0.1.2 May 30, 2023 Changes in this version + type Answer struct + Answer string + Context string + File string + type Chat2Code struct + func NewChat2Code(db vectordb.VectorDB, llm llm.LLM) (*Chat2Code, error) + func (c *Chat2Code) Answer(ctx context.Context, repo string, question string, threshold float32) (*Answer, error) + func (c *Chat2Code) Load(ctx context.Context, repo string, chunks map[string]*Chunk, embedThread int) error + type Chunk struct + File string + ID string + Index int + MD5 []byte + Text string