Initial commit
This commit is contained in:
3
services/control/go.mod
Normal file
3
services/control/go.mod
Normal file
@@ -0,0 +1,3 @@
|
||||
module control
|
||||
|
||||
go 1.25.5
|
||||
@@ -0,0 +1 @@
|
||||
package langchain_provider
|
||||
10
services/control/rag/rag.go
Normal file
10
services/control/rag/rag.go
Normal file
@@ -0,0 +1,10 @@
|
||||
package rag
|
||||
|
||||
import (
|
||||
"control/rag/types"
|
||||
)
|
||||
|
||||
type RagProvider interface {
|
||||
RegisterDocument(doc types.RagDocumentProvision) error
|
||||
QueryInformation(query types.Query) (result types.QueryResult, err error)
|
||||
}
|
||||
12
services/control/rag/types/types.go
Normal file
12
services/control/rag/types/types.go
Normal file
@@ -0,0 +1,12 @@
|
||||
package types
|
||||
|
||||
type Query struct {
|
||||
Text string
|
||||
}
|
||||
|
||||
type QueryResult struct {
|
||||
Text string
|
||||
}
|
||||
|
||||
type RagDocumentProvision struct {
|
||||
}
|
||||
Reference in New Issue
Block a user