Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unresolved reference "WithBasePath" #194

Open
Excel1 opened this issue Feb 4, 2025 · 4 comments
Open

Unresolved reference "WithBasePath" #194

Excel1 opened this issue Feb 4, 2025 · 4 comments

Comments

@Excel1
Copy link

Excel1 commented Feb 4, 2025

Im using the v0.1.4 Version and followed the ReadMe / Documentation to start a connection with my ChromaDB. By using BasePath to set the connectiion string with my new chroma client i was unable to use WithBasePath.

package main

import (
    chroma "github.com/amikos-tech/chroma-go"
    "fmt"
)

func main() {
    client,err := chroma.NewClient(chroma.WithBasePath("http://localhost:8000"))
    if err != nil {
        fmt.Printf("Failed to create client: %v", err)
    }
    // do something with client
}
@Excel1
Copy link
Author

Excel1 commented Feb 4, 2025

With the latest version it works.

github.com/amikos-tech/chroma-go v0.1.5-0.20241103135957-1b1e6ef18500

go get github.com/amikos-tech/chroma-go@main

@sunshine69
Copy link

But the latest version causing conflict if I use tmc langchain in the same projects as it requires old version.

However downgrading this makes it work (use chroma via "github.com/tmc/langchaingo/vectorstores/chroma") but then pure example from this project no longer works!

dilema :(. Need to go one of them not both

go: ai-rag-go/play2 imports
        github.com/tmc/langchaingo/vectorstores/chroma imports
        github.com/amikos-tech/chroma-go/openai: package github.com/amikos-tech/chroma-go/openai provided by github.com/amikos-tech/chroma-go at latest version v0.1.4 but not at required version v0.1.5-0.20241103135957-1b1e6ef18500

@ESEF-dev
Copy link

after a clean install and no langchain and using latest (as above) it fails with
imports github.com/amikos-tech/chroma-go
imports github.com/amikos-tech/chroma-go/pkg/embeddings/default_ef
imports github.com/amikos-tech/chroma-go/pkg/tokenizers/libtokenizers: build constraints exclude all Go files in C:\Users\foo\go\pkg\mod\github.com\amikos-tech\[email protected]\pkg\tokenizers\libtokenizers

@ESEF-dev
Copy link

after a clean install and no langchain and using latest (as above) it fails with
imports github.com/amikos-tech/chroma-go
imports github.com/amikos-tech/chroma-go/pkg/embeddings/default_ef
imports github.com/amikos-tech/chroma-go/pkg/tokenizers/libtokenizers: build constraints exclude all Go files in C:\Users\foo\go\pkg\mod\github.com\amikos-tech\[email protected]\pkg\tokenizers\libtokenizers

I think this may be a Goland problem - but any advice would be helpful - thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants