2023-05-02 03:37:24 +00:00
|
|
|
.vs/
|
2022-11-09 21:23:17 +00:00
|
|
|
.vscode/
|
2022-12-13 13:20:22 +00:00
|
|
|
.idea/
|
2022-10-24 21:51:15 +00:00
|
|
|
# Byte-compiled / optimized / DLL files
|
|
|
|
__pycache__/
|
|
|
|
*.py[cod]
|
|
|
|
*$py.class
|
|
|
|
|
|
|
|
# C extensions
|
|
|
|
*.so
|
|
|
|
|
|
|
|
# Distribution / packaging
|
|
|
|
.Python
|
|
|
|
build/
|
|
|
|
develop-eggs/
|
|
|
|
dist/
|
|
|
|
downloads/
|
|
|
|
eggs/
|
|
|
|
.eggs/
|
|
|
|
lib/
|
|
|
|
lib64/
|
|
|
|
parts/
|
|
|
|
sdist/
|
|
|
|
var/
|
|
|
|
wheels/
|
|
|
|
pip-wheel-metadata/
|
|
|
|
share/python-wheels/
|
|
|
|
*.egg-info/
|
|
|
|
.installed.cfg
|
|
|
|
*.egg
|
|
|
|
MANIFEST
|
|
|
|
|
2023-10-02 17:53:02 +00:00
|
|
|
# Google GitHub Actions credentials files created by:
|
|
|
|
# https://github.com/google-github-actions/auth
|
|
|
|
#
|
|
|
|
# That action recommends adding this gitignore to prevent accidentally committing keys.
|
|
|
|
gha-creds-*.json
|
|
|
|
|
2022-10-24 21:51:15 +00:00
|
|
|
# PyInstaller
|
|
|
|
# Usually these files are written by a python script from a template
|
|
|
|
# before PyInstaller builds the exe, so as to inject date/other infos into it.
|
|
|
|
*.manifest
|
|
|
|
*.spec
|
|
|
|
|
|
|
|
# Installer logs
|
|
|
|
pip-log.txt
|
|
|
|
pip-delete-this-directory.txt
|
|
|
|
|
|
|
|
# Unit test / coverage reports
|
|
|
|
htmlcov/
|
|
|
|
.tox/
|
|
|
|
.nox/
|
|
|
|
.coverage
|
|
|
|
.coverage.*
|
|
|
|
.cache
|
|
|
|
nosetests.xml
|
|
|
|
coverage.xml
|
|
|
|
*.cover
|
|
|
|
*.py,cover
|
|
|
|
.hypothesis/
|
|
|
|
.pytest_cache/
|
|
|
|
|
|
|
|
# Translations
|
|
|
|
*.mo
|
|
|
|
*.pot
|
|
|
|
|
|
|
|
# Django stuff:
|
|
|
|
*.log
|
|
|
|
local_settings.py
|
|
|
|
db.sqlite3
|
|
|
|
db.sqlite3-journal
|
|
|
|
|
|
|
|
# Flask stuff:
|
|
|
|
instance/
|
|
|
|
.webassets-cache
|
|
|
|
|
|
|
|
# Scrapy stuff:
|
|
|
|
.scrapy
|
|
|
|
|
|
|
|
# Sphinx documentation
|
|
|
|
docs/_build/
|
2023-06-16 18:52:56 +00:00
|
|
|
docs/docs/_build/
|
2022-10-24 21:51:15 +00:00
|
|
|
|
|
|
|
# PyBuilder
|
|
|
|
target/
|
|
|
|
|
|
|
|
# Jupyter Notebook
|
|
|
|
.ipynb_checkpoints
|
|
|
|
notebooks/
|
|
|
|
|
|
|
|
# IPython
|
|
|
|
profile_default/
|
|
|
|
ipython_config.py
|
|
|
|
|
|
|
|
# pyenv
|
|
|
|
.python-version
|
|
|
|
|
|
|
|
# pipenv
|
|
|
|
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
|
|
|
|
# However, in case of collaboration, if having platform-specific dependencies or dependencies
|
|
|
|
# having no cross-platform support, pipenv may install dependencies that don't work, or not
|
|
|
|
# install all needed dependencies.
|
|
|
|
#Pipfile.lock
|
|
|
|
|
|
|
|
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
|
|
|
|
__pypackages__/
|
|
|
|
|
|
|
|
# Celery stuff
|
|
|
|
celerybeat-schedule
|
|
|
|
celerybeat.pid
|
|
|
|
|
|
|
|
# SageMath parsed files
|
|
|
|
*.sage.py
|
|
|
|
|
|
|
|
# Environments
|
|
|
|
.env
|
2023-03-02 17:04:18 +00:00
|
|
|
.envrc
|
2024-02-28 03:37:53 +00:00
|
|
|
.venv*
|
Add docstrings for Clickhouse class methods (#19195)
Thank you for contributing to LangChain!
- [ ] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core,
experimental, etc. is being modified. Use "docs: ..." for purely docs
changes, "templates: ..." for template changes, "infra: ..." for CI
changes.
- Example: "community: add foobar LLM"
- [ ] **PR message**: ***Delete this entire checklist*** and replace
with
- **Description:** a description of the change
- **Issue:** the issue # it fixes, if applicable
- **Dependencies:** any dependencies required for this change
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!
- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.
- [x] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/
Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
2024-03-19 04:03:12 +00:00
|
|
|
venv*
|
2022-10-24 21:51:15 +00:00
|
|
|
env/
|
|
|
|
ENV/
|
|
|
|
env.bak/
|
|
|
|
|
|
|
|
# Spyder project settings
|
|
|
|
.spyderproject
|
|
|
|
.spyproject
|
|
|
|
|
|
|
|
# Rope project settings
|
|
|
|
.ropeproject
|
|
|
|
|
|
|
|
# mkdocs documentation
|
|
|
|
/site
|
|
|
|
|
|
|
|
# mypy
|
|
|
|
.mypy_cache/
|
|
|
|
.dmypy.json
|
|
|
|
dmypy.json
|
|
|
|
|
|
|
|
# Pyre type checker
|
|
|
|
.pyre/
|
2022-12-22 18:05:57 +00:00
|
|
|
|
|
|
|
# macOS display setting files
|
|
|
|
.DS_Store
|
2023-03-15 06:06:17 +00:00
|
|
|
|
2023-03-20 14:52:27 +00:00
|
|
|
# Wandb directory
|
|
|
|
wandb/
|
|
|
|
|
2023-03-15 06:06:17 +00:00
|
|
|
# asdf tool versions
|
2023-03-20 14:52:27 +00:00
|
|
|
.tool-versions
|
2023-04-05 13:51:32 +00:00
|
|
|
/.ruff_cache/
|
Fix notebook example (#3142)
The following calls were throwing an exception:
https://github.com/hwchase17/langchain/blob/575b717d108984676e25afd0910ccccfdaf9693d/docs/use_cases/evaluation/agent_vectordb_sota_pg.ipynb?short_path=4b3386c#L192
https://github.com/hwchase17/langchain/blob/575b717d108984676e25afd0910ccccfdaf9693d/docs/use_cases/evaluation/agent_vectordb_sota_pg.ipynb?short_path=4b3386c#L239
Exception:
```
---------------------------------------------------------------------------
ValidationError Traceback (most recent call last)
Cell In[14], line 1
----> 1 chain_sota = RetrievalQA.from_chain_type(llm=OpenAI(temperature=0), chain_type="stuff", retriever=vectorstore_sota, input_key="question")
File ~/github/langchain/venv/lib/python3.9/site-packages/langchain/chains/retrieval_qa/base.py:89, in BaseRetrievalQA.from_chain_type(cls, llm, chain_type, chain_type_kwargs, **kwargs)
85 _chain_type_kwargs = chain_type_kwargs or {}
86 combine_documents_chain = load_qa_chain(
87 llm, chain_type=chain_type, **_chain_type_kwargs
88 )
---> 89 return cls(combine_documents_chain=combine_documents_chain, **kwargs)
File ~/github/langchain/venv/lib/python3.9/site-packages/pydantic/main.py:341, in pydantic.main.BaseModel.__init__()
ValidationError: 1 validation error for RetrievalQA
retriever
instance of BaseRetriever expected (type=type_error.arbitrary_type; expected_arbitrary_type=BaseRetriever)
```
The vectorstores had to be converted to retrievers:
`vectorstore_sota.as_retriever()` and `vectorstore_pg.as_retriever()`.
The PR also:
- adds the file `paul_graham_essay.txt` referenced by this notebook
- adds to gitignore *.pkl and *.bin files that are generated by this
notebook
Interestingly enough, the performance of the prediction greatly
increased (new version of langchain or ne version of OpenAI models since
the last run of the notebook): from 19/33 correct to 28/33 correct!
2023-04-19 15:55:06 +00:00
|
|
|
|
|
|
|
*.pkl
|
2023-04-27 05:03:50 +00:00
|
|
|
*.bin
|
|
|
|
|
|
|
|
# integration test artifacts
|
|
|
|
data_map*
|
2023-06-02 15:40:35 +00:00
|
|
|
\[('_type', 'fake'), ('stop', None)]
|
|
|
|
|
|
|
|
# Replit files
|
2023-06-16 18:52:56 +00:00
|
|
|
*replit*
|
|
|
|
|
|
|
|
node_modules
|
|
|
|
docs/.yarn/
|
|
|
|
docs/node_modules/
|
|
|
|
docs/.docusaurus/
|
|
|
|
docs/.cache-loader/
|
|
|
|
docs/_dist
|
2023-12-07 19:43:42 +00:00
|
|
|
docs/api_reference/*api_reference.rst
|
2023-06-16 18:52:56 +00:00
|
|
|
docs/api_reference/_build
|
Fix `make docs_build` and related scripts (#7276)
**Description: a description of the change**
Fixed `make docs_build` and related scripts which caused errors. There
are several changes.
First, I made the build of the documentation and the API Reference into
two separate commands. This is because it takes less time to build. The
commands for documents are `make docs_build`, `make docs_clean`, and
`make docs_linkcheck`. The commands for API Reference are `make
api_docs_build`, `api_docs_clean`, and `api_docs_linkcheck`.
It looked like `docs/.local_build.sh` could be used to build the
documentation, so I used that. Since `.local_build.sh` was also building
API Rerefence internally, I removed that process. `.local_build.sh` also
added some Bash options to stop in error or so. Futher more added `cd
"${SCRIPT_DIR}"` at the beginning so that the script will work no matter
which directory it is executed in.
`docs/api_reference/api_reference.rst` is removed, because which is
generated by `docs/api_reference/create_api_rst.py`, and added it to
.gitignore.
Finally, the description of CONTRIBUTING.md was modified.
**Issue: the issue # it fixes (if applicable)**
https://github.com/hwchase17/langchain/issues/6413
**Dependencies: any dependencies required for this change**
`nbdoc` was missing in group docs so it was added. I installed it with
the `poetry add --group docs nbdoc` command. I am concerned if any
modifications are needed to poetry.lock. I would greatly appreciate it
if you could pay close attention to this file during the review.
**Tag maintainer**
- General / Misc / if you don't know who to tag: @baskaryan
If this PR needs any additional changes, I'll be happy to make them!
---------
Co-authored-by: Bagatur <baskaryan@gmail.com>
2023-07-12 02:05:14 +00:00
|
|
|
docs/api_reference/*/
|
|
|
|
!docs/api_reference/_static/
|
|
|
|
!docs/api_reference/templates/
|
|
|
|
!docs/api_reference/themes/
|
2023-10-10 19:55:19 +00:00
|
|
|
docs/docs/build
|
|
|
|
docs/docs/node_modules
|
|
|
|
docs/docs/yarn.lock
|
2023-10-15 21:59:45 +00:00
|
|
|
_dist
|
Cache calls to create_model for get_input_schema and get_output_schema (#17755)
Thank you for contributing to LangChain!
- [ ] **PR title**: "package: description"
- Where "package" is whichever of langchain, community, core,
experimental, etc. is being modified. Use "docs: ..." for purely docs
changes, "templates: ..." for template changes, "infra: ..." for CI
changes.
- Example: "community: add foobar LLM"
- [ ] **PR message**: ***Delete this entire checklist*** and replace
with
- **Description:** a description of the change
- **Issue:** the issue # it fixes, if applicable
- **Dependencies:** any dependencies required for this change
- **Twitter handle:** if your PR gets announced, and you'd like a
mention, we'll gladly shout you out!
- [ ] **Add tests and docs**: If you're adding a new integration, please
include
1. a test for the integration, preferably unit tests that do not rely on
network access,
2. an example notebook showing its use. It lives in
`docs/docs/integrations` directory.
- [ ] **Lint and test**: Run `make format`, `make lint` and `make test`
from the root of the package(s) you've modified. See contribution
guidelines for more: https://python.langchain.com/docs/contributing/
Additional guidelines:
- Make sure optional dependencies are imported within a function.
- Please do not add dependencies to pyproject.toml files (even optional
ones) unless they are required for unit tests.
- Most PRs should not touch more than one package.
- Changes should be backwards compatible.
- If you are adding something to community, do not re-import it in
langchain.
If no one reviews your PR within a few days, please @-mention one of
baskaryan, efriis, eyurtsev, hwchase17.
2024-02-19 21:26:42 +00:00
|
|
|
docs/docs/templates
|
|
|
|
|
|
|
|
prof
|
2024-05-23 19:09:34 +00:00
|
|
|
virtualenv/
|