54 Commits

Author SHA1 Message Date
dependabot[bot]
1d4fe3c70e
Bump tornado from 6.3.2 to 6.3.3 in /apps/web-crawl-q-and-a (#694)
Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.3.2 to 6.3.3.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst)
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.3.2...v6.3.3)

---
updated-dependencies:
- dependency-name: tornado
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:41:38 -07:00
dependabot[bot]
febd649e97
Bump requests from 2.28.2 to 2.31.0 in /apps/chatbot-kickstarter (#702)
Bumps [requests](https://github.com/psf/requests) from 2.28.2 to 2.31.0.
- [Release notes](https://github.com/psf/requests/releases)
- [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md)
- [Commits](https://github.com/psf/requests/compare/v2.28.2...v2.31.0)

---
updated-dependencies:
- dependency-name: requests
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:41:23 -07:00
dependabot[bot]
43069905cb
Bump langchain in /apps/enterprise-knowledge-retrieval (#695)
Bumps [langchain](https://github.com/langchain-ai/langchain) from 0.0.158 to 0.0.246.
- [Release notes](https://github.com/langchain-ai/langchain/releases)
- [Commits](https://github.com/langchain-ai/langchain/commits)

---
updated-dependencies:
- dependency-name: langchain
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:39:25 -07:00
dependabot[bot]
a1acbfe106
Bump word-wrap in /apps/file-q-and-a/nextjs-with-flask-server/client (#697)
Bumps [word-wrap](https://github.com/jonschlinkert/word-wrap) from 1.2.3 to 1.2.5.
- [Release notes](https://github.com/jonschlinkert/word-wrap/releases)
- [Commits](https://github.com/jonschlinkert/word-wrap/compare/1.2.3...1.2.5)

---
updated-dependencies:
- dependency-name: word-wrap
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:39:14 -07:00
dependabot[bot]
0348bb51ae
Bump semver in /apps/file-q-and-a/nextjs-with-flask-server/client (#698)
Bumps [semver](https://github.com/npm/node-semver) from 6.3.0 to 6.3.1.
- [Release notes](https://github.com/npm/node-semver/releases)
- [Changelog](https://github.com/npm/node-semver/blob/v6.3.1/CHANGELOG.md)
- [Commits](https://github.com/npm/node-semver/compare/v6.3.0...v6.3.1)

---
updated-dependencies:
- dependency-name: semver
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:39:03 -07:00
Matthew Jericho Go Sy
b7d3f3519e
Fix File Q&A build error due to removed way of assigning options to the Formidable instance (#372)
* Pass maxFileSize attribute when instantiating IncomingForm()

Assigning a value through `form.maxFileSize` directly no longer works and will result in `Type error: Property 'maxFileSize' does not exist on type 'IncomingForm'.`

* Refactor Formidable instantiation acdg. to example shown in docs

Example usage acdg. to docs: e5e25d2fd9/README.md (formidable--incomingform)
2023-09-11 16:09:00 -07:00
dependabot[bot]
0f7d648975
Bump tornado from 6.2 to 6.3.2 in /apps/web-crawl-q-and-a (#459)
Bumps [tornado](https://github.com/tornadoweb/tornado) from 6.2 to 6.3.2.
- [Changelog](https://github.com/tornadoweb/tornado/blob/master/docs/releases.rst)
- [Commits](https://github.com/tornadoweb/tornado/compare/v6.2.0...v6.3.2)

---
updated-dependencies:
- dependency-name: tornado
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-09-11 16:05:37 -07:00
DevilsWorkShop
39b62a6c09
Catch the exception thrown by the With.Open and continue with the queue (#155)
Co-authored-by: Ashok Manghat <amanghat@rmplc.net>
2023-09-11 15:55:57 -07:00
Alvaro Videla
18b7ee5f37
adds devcontainer support for file-q-and-a app (#218) 2023-09-11 15:51:02 -07:00
ys64
7cda7e2df7
add the last chunk to the list of chunks in web-qa.ipynb (#691) 2023-09-11 14:54:40 -07:00
Simón Fishman
b2ca4d395c
Revert "File name sanitization (#630)" (#668)
This reverts commit 169f5e02c8ab13372bb066263424f9ddb31f7f9f.
2023-08-29 17:45:47 -07:00
Safa Asgar
169f5e02c8
File name sanitization (#630)
* File name sanitization

URL containing reserved characters blocks file name creation.

* Regular Expression fix for Sanitized URL

Co-authored-by: Simón Fishman <simonpfish@gmail.com>

---------

Co-authored-by: Simón Fishman <simonpfish@gmail.com>
2023-08-29 10:49:23 -07:00
Tomas Dulka
4fd2b1a6d2
replace eval with safer literal_eval (#561) 2023-07-17 16:40:54 -07:00
Ikko Eltociear Ashimine
0d1436b8d9
Fix typo in getEmbeddingsForText.ts (#515)
charcter -> character
2023-06-16 18:31:53 -07:00
Midori
6a45fca718
Fix duplicate "basic" 2023-06-14 10:35:49 +09:00
Victor Duarte
e5fef1fd18
Add missing word 2023-06-08 08:11:31 +02:00
chentienan
3a57c9a4a5 FIX: missing pip installs for enterprise_knowledge_retrieval.ipynb
Updated pip installs to include missing dependencies (openai, tiktoken, wget) for enterprise_knowledge_retrieval.ipynb, which were causing the notebook to fail executing.
2023-05-26 18:00:11 +08:00
Ted Sanders
a562bae15f fixes bad paths in embeddings playground readme 2023-05-22 16:41:21 -07:00
Ted Sanders
28ab8b5c44
Ted/embeddings playground (#439)
* adds embeddings-playground app

* update table of contents with embeddings playground
2023-05-19 18:15:24 -07:00
Ted Sanders
f9d1934708
Merge pull request #430 from Optimized-Coder/patch-2
Update transformers.py
2023-05-18 17:06:11 -07:00
juston
b78e9d529b
Update enterprise_knowledge_retrieval.ipynb
Removing some of the scores here; it's cluttering the notebook a bit.
2023-05-18 19:07:19 -04:00
Josh Shepherd
ed23dba54b
Update transformers.py
Add explanative docstring to handle_file_string function and move docstrings to below function definition as per pep 257 specification
2023-05-18 13:30:55 +01:00
colin-openai
8d37a0912d
Merge pull request #352 from SmashedFrenzy16/main
Update `chat.py` removing an unnecessary string
2023-05-18 11:25:23 +01:00
colin-openai
12527df1f9
Merge pull request #414 from openai/embedding_retrieval_deep_dive
Pushing enterprise knowledge retrieval to cookbook
2023-05-15 18:04:56 +01:00
colin-openai
9c02c9c44c
Merge pull request #301 from Optimized-Coder/main
Increase readability in chatbot.py
2023-05-14 20:50:07 +01:00
Colin Jarvis
11bc21d878 Pushing updated version with comments fixed 2023-05-12 14:37:22 +01:00
Colin Jarvis
9f71c6b9a0 Added retry decorator to embeddings 2023-05-12 14:30:33 +01:00
Colin Jarvis
5d9e877909 Pushing updates to batch embeddings and clean up evaluation section 2023-05-12 12:53:06 +01:00
Colin Jarvis
a3918a9d60 Pushing enterprise knowledge retrieval to cookbook 2023-05-11 10:38:30 +01:00
Darshan Panchal
e66613331a
Update requirements.txt
removed html since it was not required
2023-05-11 09:21:34 +05:30
SmashedFrenzy16
d1ecfda195
Update chat.py removing unnecessary string 2023-04-16 10:49:57 +01:00
colin-openai
a7d892265e Added tiktoken to requirements file and updated README to include chatbot-kickstarter 2023-04-12 01:32:14 -07:00
Alexander Khapaev
ee9b6268d4 Updated the get_domain_hyperlinks function to include handling of tel: links in addition to mailto: links, to exclude them from the clean links list. 2023-04-07 18:28:44 +03:00
isafulf
b637c93e74 Update answer_question.py 2023-04-02 17:33:25 -07:00
isafulf
59e10cec11 Update FileQandAArea.tsx 2023-04-02 17:32:37 -07:00
isafulf
1af8aab27d use ChatGPT API in flask app 2023-04-02 17:29:19 -07:00
isafulf
fb7a87a8a5 address https://github.com/openai/openai-cookbook/issues/248 2023-04-02 17:28:52 -07:00
isafulf
c7384cc353 use ChatGPT API in nextjs example 2023-04-02 17:28:29 -07:00
isafulf
75cc4483d7 address https://github.com/openai/openai-cookbook/issues/159 2023-04-02 17:26:53 -07:00
isafulf
013a52a80d increase OpenAI NodeJS client version 2023-04-02 17:26:19 -07:00
Josh Shepherd
4287b62693
Increase readability to chatbot.py
This is an amazing script and I thought I would give it a huge justice by making it more readable for onlookers
2023-03-31 01:37:21 +01:00
fabiofranco85
5a80ef2571
Improve regex 2023-03-27 07:38:35 -03:00
colin-openai
8a5b4957a3
Merge pull request #206 from openai/getting_started_qanda_chatbot
Chatbot starter app used in conference
2023-03-21 15:03:30 -07:00
William Buck
ca9b9d485d
remove duplicate import of distances_from_embeddings 2023-03-20 13:02:37 -07:00
Ted Sanders
8f06acdd82
Merge pull request #146 from hunkim/patch-1
Add handling for last chunk in split_into_sentences function
2023-03-16 16:11:05 -07:00
isafulf
fc08b09422 Update start 2023-03-12 19:15:13 -04:00
colin-openai
771f108f77 Initial commit of simple app demonstrating chatbot starting point in notebook and Streamlit 2023-03-10 02:45:48 -08:00
JJ
196c22153e
Changed "the the endpoint" to "to the endpoint"
Line 14 -> I think it should be "call made to the endpoint" instead of "call made the the endpoint"
2023-02-23 12:14:59 -08:00
Sung Kim
3210b38e35
Add handling for last chunk in split_into_sentences function
I have added handling for the last chunk in the split_into_sentences function. Previously, the function did not account for the last chunk, which could lead to incomplete sentences in the output.

To solve this, I added a conditional statement to check if the last chunk is non-empty. If it is, I append it to the list of chunks with a period to ensure the last sentence is complete.

This change improves the accuracy of the split_into_sentences function and ensures that all sentences in the input text are properly segmented. Please review and let me know if you have any feedback or concerns.
2023-02-19 11:00:27 +09:00
Logan Kilpatrick
3826607431
Add comment on where to learn about rate limits 2023-02-17 06:16:14 -06:00