tiktoken
reflex
tiktoken | reflex | |
---|---|---|
32 | 76 | |
9,980 | 17,027 | |
6.4% | 8.8% | |
6.7 | 9.9 | |
about 1 month ago | about 9 hours ago | |
Python | Python | |
MIT License | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
tiktoken
- FLaNK AI - 01 April 2024
-
GPT-3.5 crashes when it thinks about useRalativeImagePath too much
Their tokenizer is open source: https://github.com/openai/tiktoken
Data files that contain vocabulary are listed here: https://github.com/openai/tiktoken/blob/9e79899bc248d5313c7d...
-
How fast is JS tiktoken?
OpenAI's refference tokeniser - https://github.com/openai/tiktoken
-
Anthropic announces Claude 2.1 β 200k context, less refusals
ChatGPT presumably adds them as special tokens to the cl100k_base tokenizer, as they demo in the tiktoken documentation: https://github.com/openai/tiktoken#extending-tiktoken
-
What is the best way to get an approximate number of tokens for a piece of text?
I want to measure the approximate number of tokens in a piece of text to understand if I will need to modify it before passing it into the context of an OpenAI API call. Tiktoken can do this, but I'm not sure if it's overkill to use that library just for this simple task. I don't need to actually tokenize the text, I just need an approximate count (e.g. within like 1% of the text's actual token length for text that represents the visible text on a webpage).
-
Show HN: LLaMA tokenizer that runs in browser
https://platform.openai.com/tokenizer or the official python library tiktoken https://github.com/openai/tiktoken or this JS port of tiktoken https://github.com/dqbd/tiktoken
-
Made a GPT-3.5-Turbo and GPT-4 Tokenizer
It's built on top of the tiktoken library and is basically just a lambda function in the backend.
- AiPrice - an API for calculating OpenAI tokens and pricing
-
Anyone able to explain what happened here?
"All" is a single token in OpenAI's tiktoken Tokenizer, unrelated to the token for capital "A". Even lowercase "all" is a distinct token from "All" or "ALL."
-
Which lib is the tokenizer page using to calculate the tokens?
check tiktoken
reflex
-
Designing a Pure Python Web Framework
Hey thanks for the feedback. We're working on relaxing our dependencies [1] to make reflex more compatible. Do you remember what libraries you had the conflict with?
[1] https://github.com/reflex-dev/reflex/pull/2796
-
Show HN: Hyperdiv β Reactive, immediate-mode web UI framework for Python
Thanks! Pue looks cool, thanks for sharing. I see some similarities to https://reflex.dev in terms of providing a declarative dom expression language with built-in conditionals and loop primitives.
-
Embracing Modern Python for Web Development
In the dynamic world of web development, Python has emerged as a dominant force, especially in backend development β the primary focus of this blog post. Although it's worth mentioning that there are ongoing efforts to use Python for the frontend as well, like Reflex (previously known as Pynecone, they presumably had to change their name because of Pinecone vector database), which even garnered support from Y Combinator. Samuel Colvin (creator of Pydantic) is also working on FastUI (he literally just released the first version in December 2023).
-
Show HN: Taipy β Turns Data and AI algorithms into full web applications
They have a ready to use LLM chat App, which makes it more likely I will check it out.
https://github.com/reflex-dev/reflex
- Reflex v0.3.2 is released
-
Build a chatbot to interact with your Pandas DataFrame using Reflex
We will use Reflex to build this chatbot.
- Reflex: Web Apps in Pure Python
-
Build an OCR app using fullstack Python Framework Reflex
To learn more about Reflex, you can read here: https://reflex.dev/
-
Build a Text Summarization app using Reflex (Pure Python)
Reflex is an open-source, full-stack Python framework that makes it easy to build and deploy web apps in minutes. You have most of the features of a frontend library like Reactjs and a backend framework like Django in one with ease in development and deployment. All while developing in a single language PYTHON.
-
ππ 23 issues to grow yourself as an exceptional open-source Python expert π§βπ» π₯
Repo : https://github.com/reflex-dev/reflex
What are some alternatives?
tokenizer - Pure Go implementation of OpenAI's tiktoken tokenizer
flet - Flet enables developers to easily build realtime web, mobile and desktop apps in Python. No frontend experience required.
daath-ai-parser - Daath AI Parser is an open-source application that uses OpenAI to parse visible text of HTML elements.
nicegui - Create web-based user interfaces with Python. The nice way.
CLIP - CLIP (Contrastive Language-Image Pretraining), Predict the most relevant text snippet given an image
streamlit - Streamlit β A faster way to build and share data apps.
skypilot - SkyPilot: Run LLMs, AI, and Batch jobs on any cloud. Get maximum savings, highest GPU availability, and managed executionβall with a simple interface.
django-unicorn - The magical reactive component framework for Django β¨
bricks - Open-source natural language enrichments at your fingertips.
dash - Data Apps & Dashboards for Python. No JavaScript Required.
terminal-copilot - A smart terminal assistant that helps you find the right command.
air - βοΈ Live reload for Go apps