Skip to content

AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length' #1100

Closed as not planned
@Sohojoe

Description

@Sohojoe

since updating to v0.88 i get this error

AttributeError: 'OpenAIEmbeddings' object has no attribute 'embedding_ctx_length

Note: my faiss data and doc.index where create with an older version

my code is simple.

    index = faiss.read_index("docs.index")

    with open("faiss_store.pkl", "rb") as f:
        store = pickle. Load(f)
    store. Index = index
    
    docs = store.similarity_search_with_score(
            prompt, k=4
    )

it looks like it is releated to this PR #991 by @Hase-U

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions