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

remove commonly unpicklable entries #8838

Merged
merged 3 commits into from
Nov 10, 2023
Merged

Conversation

logan-markewich
Copy link
Collaborator

@logan-markewich logan-markewich commented Nov 10, 2023

Description

Tiktoken is famously un-picklable, but it's used all across LlamaIndex.

However, with a sneaky wave of a wand (and relying on BaseComponent inheritance), we can fix this by removing unpicklable entries.

This probably won't cover every edge case, but it gets most.

Tested with pickle.dumps(index) and pickle.dumps(index.as_query_engine()).

Fixes #8835

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

llama_index/schema.py Outdated Show resolved Hide resolved
@logan-markewich logan-markewich merged commit 0458592 into main Nov 10, 2023
@logan-markewich logan-markewich deleted the logan/make_picklable branch November 10, 2023 16:05
@ryanpeach ryanpeach mentioned this pull request Feb 7, 2024
15 tasks
ryanpeach pushed a commit to OnScale/llama_index that referenced this pull request Feb 7, 2024
@ryanpeach ryanpeach mentioned this pull request Feb 7, 2024
15 tasks
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

Successfully merging this pull request may close these issues.

[Question]: How to Query RAG systems with Multiple prompt concurently
2 participants