This repository has been archived by the owner on Nov 13, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 122
canopy server documentation #136
Merged
Merged
Changes from 21 commits
Commits
Show all changes
35 commits
Select commit
Hold shift + click to select a range
7ed9291
canopy server documentation
miararoy bdea5a6
fix response type in Chat
miararoy 78e2238
Merge branch 'dev' into server-docstrings
miararoy 001bac8
ignore line mypy
miararoy 78a0a3b
remove soon dep. flag
miararoy 2ad5385
Add 'ignored' for model param
miararoy 575301c
stream descp
miararoy 257130c
user descp
miararoy 553661c
batch size
miararoy d4a725e
app.py
miararoy c7a014c
fix trailing whitespace
miararoy 1d9d566
fix
miararoy acc42c3
Apply suggestions from code review
miararoy 8227d84
[app] Don't use private attribute
igiloh-pinecone 6f4b0a1
[app] Parent process - use an even better solution
igiloh-pinecone 9db8c0f
[app] Properly handle None case
igiloh-pinecone 8f019b6
[models] Rename ContextContentResponse
igiloh-pinecone 08a7f23
[app] Fix description
igiloh-pinecone 3d16600
Apply Byron's and Nathan's suggestions from code review
igiloh-pinecone 2bbba59
[app] Made generating the docs optional
igiloh-pinecone 4ac9ff9
[app] Moved docs template to their own dedicated file
igiloh-pinecone 71c7fc6
fix linter issues
igiloh-pinecone 3e63f95
[CLI] Control commands order in help message
igiloh-pinecone 3f8acd2
[cli] Rename 'service' to 'server'
igiloh-pinecone 1a29f3a
linter
igiloh-pinecone 3582401
Merge branch 'dev' into server-docstrings
igiloh-pinecone 48c8d1b
Context must contain a ContextContent that implements to_text()
igiloh-pinecone 457b61b
linters
igiloh-pinecone 50efc68
[context] Simplify ContextContent
igiloh-pinecone f0b40e9
[context] StuffingContextContent - Removed special iterator functions
igiloh-pinecone 4e7a2ce
Merge pull request #140 from pinecone-io/cli_server
igiloh-pinecone 02637da
[context] Moved SuffingContextBuilder's data models into the same file
igiloh-pinecone db9ca51
[app] `/query` return type - added ContextResponse model
igiloh-pinecone 3c828c4
Linter fixes + wrong return type
igiloh-pinecone 2104b65
Merge pull request #144 from pinecone-io/refactor_context_content
igiloh-pinecone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -162,4 +162,5 @@ cython_debug/ | |
# Mac OS | ||
**/.DS_Store | ||
|
||
datafiles/* | ||
datafiles/* | ||
canopy-api-docs.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
HTML_TEMPLATE = """<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | ||
<title>Canopy API Spec</title> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="shortcut icon" href="https://polybit-apps.s3.amazonaws.com/stdlib/users/pinecone/profile/image.png"> | ||
<style> | ||
body { | ||
margin: 0; | ||
padding: 0; | ||
} | ||
</style> | ||
<style data-styled="" data-styled-version="4.4.1"></style> | ||
</head> | ||
<body> | ||
<div id="redoc-container"></div> | ||
<title>Redoc</title> | ||
<script src="https://cdn.jsdelivr.net/npm/redoc/bundles/redoc.standalone.js"> </script> | ||
<script> | ||
var spec = %s; | ||
Redoc.init(spec, {}, document.getElementById("redoc-container")); | ||
</script> | ||
</body> | ||
</html> | ||
""" # noqa: E501 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file definitely doesn't belong in the
canopy_cli
directory (package).Usually, I would put this file somewhere under the repo's root (not inside
src
) and use it only in CI. But I get it that you want users to be able to build the documentation locally.In that case - I'm not even sure this file will be included in the
.whl
without explicitly being included in thepyproject.toml
.Please check what is the best practice for allowing user's to get documentation locally.