Skip to main content
51
results
Andrew Fletcher
It seems like you're using the CharacterTextSplitter class from the tiktoken library to split text into chunks. The CharacterTextSplitter.from_tiktoken_encoder() method is used to create an instance of the CharacterTextSplitter class with specific configuration settings.   Breakdown of the parameters used in this method separator This parameter specifies the character or sequence of characters used to separate the text into chunks. In your example, the separator is set to "\n", which means...
Andrew Fletcher
To use OpenAI to summarise text from a PDF using Python 3.11.6, you'll first...
Andrew Fletcher
The os.makedirs(directory_path) function in Python can be used with both...
Andrew Fletcher
You can move a file from one directory to another in Python using the shutil...
Andrew Fletcher
OpenAI request timeout? Retrying...
Andrew Fletcher
Whilst installing Python 3.11.6 and running the command 'sudo make altinstall', the following error Creating directory /usr/local/share/man/man1 /usr/bin/install -c -m 644 ./Misc/python.man \    /usr/local/share/man/man1/python3.11.1 if test "xupgrade" != "xno" ; then \    case upgrade in \        upgrade) ensurepip="--altinstall --upgrade" ;; \        install|*) ensurepip="--altinstall" ;;...
Andrew Fletcher
Ubuntu 20.04 comes with Python 3.8 installed.  If you run the update...
Andrew Fletcher
Adding an SSL wildcard certificate to an Ubuntu server involves several steps....
Andrew Fletcher
When logging into Ubuntu server you will see a response similar to Welcome to...
Andrew Fletcher
Forcing https and www or non-www is a process that I was a custom to through...
Andrew Fletcher
Changes to the Python3 package list post installing packages each of the packages list in the column headers Initial list + openai + langchain + llama-index + gradio Package                      Version---------------------------- ---------absl-py                      2.0.0astunparse                   1.6.3cachetools    ...
Andrew Fletcher
Python3 error  None of PyTorch, TensorFlow >= 2.0, or Flax have been...
Andrew Fletcher
When running python openai command, I was greeted...
Andrew Fletcher
Python3 Error ImportError: cannot import name 'soft_unicode' from 'markupsafe'...
Andrew Fletcher
Goal: Restrict content access through username and password entry on an Nginx...