Skip to content

Commit

Permalink
Merge branch 'faiss-doc-ids' of https://github.com/nhols/langchain in…
Browse files Browse the repository at this point in the history
…to faiss-doc-ids
  • Loading branch information
nhols committed Dec 15, 2024
2 parents 2d609f8 + a699b69 commit f820c6e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/community/langchain_community/vectorstores/faiss.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,14 @@ def __add(
_len_check_if_sized(texts, ids, "texts", "ids")

_metadatas = metadatas or ({} for _ in texts)
<<<<<<< HEAD

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:291:1: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:291:3: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:291:5: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:291:7: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:291:1: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:291:3: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:291:5: SyntaxError: Expected a statement

Check failure on line 291 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:291:7: SyntaxError: Expected a statement
documents = [Document(id=id_, page_content=t, metadata=m) for id_, t, m in zip(ids, texts, _metadatas)]

Check failure on line 292 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:292:1: SyntaxError: Unexpected indentation

Check failure on line 292 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff (E501)

langchain_community/vectorstores/faiss.py:292:89: E501 Line too long (111 > 88)

Check failure on line 292 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:292:1: SyntaxError: Unexpected indentation

Check failure on line 292 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff (E501)

langchain_community/vectorstores/faiss.py:292:89: E501 Line too long (111 > 88)
=======

Check failure on line 293 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.13

Ruff

langchain_community/vectorstores/faiss.py:293:1: SyntaxError: Expected a statement

Check failure on line 293 in libs/community/langchain_community/vectorstores/faiss.py

View workflow job for this annotation

GitHub Actions / cd libs/community / make lint #3.9

Ruff

langchain_community/vectorstores/faiss.py:293:1: SyntaxError: Expected a statement
documents = [
Document(id=id_, page_content=t, metadata=m)
for id_, t, m in zip(ids, texts, _metadatas)
]
>>>>>>> a699b69385b8781f8465316bf17eb35dfb1562d0

_len_check_if_sized(documents, embeddings, "documents", "embeddings")

Expand Down

0 comments on commit f820c6e

Please sign in to comment.