Skip to content

Commit

Permalink
remove tei embeddings
Browse files Browse the repository at this point in the history
  • Loading branch information
pattonjp committed Dec 8, 2023
1 parent 2a45fb2 commit a9142b9
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 416 deletions.
8 changes: 0 additions & 8 deletions embeddings/tei/doc.go

This file was deleted.

104 changes: 0 additions & 104 deletions embeddings/tei/options.go

This file was deleted.

85 changes: 0 additions & 85 deletions embeddings/tei/text_embeddings_inference..go

This file was deleted.

67 changes: 0 additions & 67 deletions embeddings/tei_test.go

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"github.com/milvus-io/milvus-sdk-go/v2/client"
"github.com/milvus-io/milvus-sdk-go/v2/entity"
"github.com/tmc/langchaingo/embeddings"
"github.com/tmc/langchaingo/llms/tei"
"github.com/tmc/langchaingo/llms/openai"
"github.com/tmc/langchaingo/schema"

"github.com/tmc/langchaingo/vectorstores"
Expand All @@ -18,6 +18,7 @@ import (

const (
poolSize = 5
baseURL = "http://localhost:5500"
)

func main() {
Expand All @@ -29,10 +30,7 @@ func main() {
}

func newStore() (vectorstores.VectorStore, error) {
llm, err := tei.New(
tei.WithAPIBaseURL("http://localhost:5500"),
tei.WithPoolSize(poolSize),
)
llm, err := openai.New(openai.WithBaseURL(baseURL))
if err != nil {
log.Fatal(err)
}
Expand Down
8 changes: 0 additions & 8 deletions llms/tei/doc.go

This file was deleted.

89 changes: 0 additions & 89 deletions llms/tei/options.go

This file was deleted.

Loading

0 comments on commit a9142b9

Please sign in to comment.