Skip to content

Commit

Permalink
chore: move legacy code (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
henomis committed Mar 9, 2024
1 parent b1706e1 commit ba47574
Show file tree
Hide file tree
Showing 38 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion examples/chat/functions/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"net/http"
"os"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
Expand Down
2 changes: 1 addition & 1 deletion examples/chat/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/prompt"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/embeddings/knowledge_base/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"fmt"
"os"

"github.com/henomis/lingoose/chat"
openaiembedder "github.com/henomis/lingoose/embedder/openai"
"github.com/henomis/lingoose/index"
indexoption "github.com/henomis/lingoose/index/option"
"github.com/henomis/lingoose/legacy/chat"

"github.com/henomis/lingoose/index/vectordb/jsondb"
"github.com/henomis/lingoose/llm/openai"
Expand Down
2 changes: 1 addition & 1 deletion examples/embeddings/simplekb/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/henomis/lingoose/index"
"github.com/henomis/lingoose/index/option"
"github.com/henomis/lingoose/index/vectordb/jsondb"
qapipeline "github.com/henomis/lingoose/legacy/pipeline/qa"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/loader"
qapipeline "github.com/henomis/lingoose/pipeline/qa"
"github.com/henomis/lingoose/textsplitter"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/llm/openai/stream/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/prompt"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline/callbacks/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package main
import (
"context"

"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
8 changes: 4 additions & 4 deletions examples/pipeline/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ import (
"encoding/json"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/decoder"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/legacy/decoder"
"github.com/henomis/lingoose/legacy/memory/ram"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/memory/ram"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
4 changes: 2 additions & 2 deletions examples/pipeline/history/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"encoding/json"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/history"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
6 changes: 3 additions & 3 deletions examples/pipeline/memory/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ import (
"encoding/json"
"fmt"

"github.com/henomis/lingoose/decoder"
"github.com/henomis/lingoose/legacy/decoder"
"github.com/henomis/lingoose/legacy/memory/ram"
"github.com/henomis/lingoose/legacy/pipeline"
llmmock "github.com/henomis/lingoose/llm/mock"
"github.com/henomis/lingoose/memory/ram"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/pipeline/openai/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"

"github.com/henomis/lingoose/legacy/memory/ram"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/memory/ram"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
4 changes: 2 additions & 2 deletions examples/pipeline/simple/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/decoder"
"github.com/henomis/lingoose/legacy/decoder"
"github.com/henomis/lingoose/legacy/pipeline"
llmmock "github.com/henomis/lingoose/llm/mock"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
)

Expand Down
4 changes: 2 additions & 2 deletions examples/pipeline/splitter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import (
"encoding/json"
"fmt"

"github.com/henomis/lingoose/legacy/memory/ram"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/memory/ram"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline/sql/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"context"
"fmt"

sqlpipeline "github.com/henomis/lingoose/legacy/pipeline/sql"
"github.com/henomis/lingoose/llm/openai"
sqlpipeline "github.com/henomis/lingoose/pipeline/sql"
"github.com/henomis/lingoose/types"
// enable sqlite3 driver
// _ "github.com/mattn/go-sqlite3"
Expand Down
2 changes: 1 addition & 1 deletion examples/pipeline/summarize/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ package main
import (
"context"

summarizepipeline "github.com/henomis/lingoose/legacy/pipeline/summarize"
"github.com/henomis/lingoose/llm/openai"
"github.com/henomis/lingoose/loader"
summarizepipeline "github.com/henomis/lingoose/pipeline/summarize"
"github.com/henomis/lingoose/textsplitter"
)

Expand Down
2 changes: 1 addition & 1 deletion examples/prompt/chat/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package main
import (
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/prompt"
)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion pipeline/lmm.go → legacy/pipeline/lmm.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package pipeline
import (
"context"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/types"
)

Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pipeline/qa/qa.go → legacy/pipeline/qa/qa.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/document"
"github.com/henomis/lingoose/index"
indexoption "github.com/henomis/lingoose/index/option"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions pipeline/sql/sql.go → legacy/pipeline/sql/sql.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"fmt"
"strings"

"github.com/henomis/lingoose/decoder"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/legacy/decoder"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"fmt"

"github.com/henomis/lingoose/document"
"github.com/henomis/lingoose/pipeline"
"github.com/henomis/lingoose/legacy/pipeline"
"github.com/henomis/lingoose/prompt"
"github.com/henomis/lingoose/types"
)
Expand Down
2 changes: 1 addition & 1 deletion pipeline/tube.go → legacy/pipeline/tube.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"context"
"fmt"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/types"
"github.com/mitchellh/mapstructure"
)
Expand Down
2 changes: 1 addition & 1 deletion llm/cohere/cohere.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/henomis/cohere-go/model"
"github.com/henomis/cohere-go/request"
"github.com/henomis/cohere-go/response"
"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/llm/cache"
"github.com/henomis/lingoose/thread"
)
Expand Down
2 changes: 1 addition & 1 deletion llm/llamacpp/llamacpp.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
"os/exec"
"regexp"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion llm/mock/mock.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (
"strings"
"time"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
)

type LlmMock struct {
Expand Down
2 changes: 1 addition & 1 deletion llm/openai/legacy.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"os"
"strings"

"github.com/henomis/lingoose/chat"
"github.com/henomis/lingoose/legacy/chat"
"github.com/henomis/lingoose/llm/cache"
"github.com/henomis/lingoose/types"
"github.com/mitchellh/mapstructure"
Expand Down

0 comments on commit ba47574

Please sign in to comment.