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

package analysis // golang.org/x/tools/go/analysis type Pass struct { ... // AllObjectFacts returns a new slice containing all object // facts of the analysis's FactTypes in unspecified order. AllObjectFacts func() []ObjectFact . (if unsure, please run git pull --rebase upstream main). #530

Closed
wants to merge 199 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
199 commits
Select commit Hold shift + click to select a range
463026a
[Release] Version 0.1.1 (#134)
kyolee415 Oct 4, 2023
0868751
Update stale.yml (#132)
ymodak Oct 4, 2023
125330d
Bump postcss from 8.4.21 to 8.4.31 in /demos/palm/web/quick-prompt (#…
dependabot[bot] Oct 4, 2023
53fb7d0
Bump postcss from 8.4.27 to 8.4.31 in /demos/palm/web/textfx (#141)
dependabot[bot] Oct 4, 2023
2eccaf3
Bump postcss from 8.4.21 to 8.4.31 in /demos/palm/web/list-it (#142)
dependabot[bot] Oct 4, 2023
af09634
Update labeler.yml (#138)
williamito Oct 4, 2023
a917fd1
[Docs Agent][Update] version 0.1.2 (#146)
kyolee415 Oct 6, 2023
a8646ca
Update tuning_quickstart_python.ipynb (#150)
MarkDaoust Oct 13, 2023
172fb02
Pipet Code Agent import (#149)
markmcd Oct 13, 2023
ecff050
Fixups (#135)
MarkDaoust Oct 13, 2023
6a37ac8
Bump semver from 7.5.1 to 7.5.4 in /demos/palm/node/pipet-code-agent …
dependabot[bot] Oct 16, 2023
e965aa7
Bump word-wrap from 1.2.3 to 1.2.5 in /demos/palm/node/pipet-code-age…
dependabot[bot] Oct 16, 2023
c920c2d
Bump protobufjs and google-gax in /demos/palm/node/pipet-code-agent (…
dependabot[bot] Oct 16, 2023
e0e05d3
Update curl_quickstart.ipynb (#151)
MarkDaoust Oct 16, 2023
67c8fd3
Use candidates[0] in makersuite template. (#136)
MarkDaoust Oct 16, 2023
7a42081
Limit embedding requests to text samples under 10k (#155)
markmcd Oct 17, 2023
13372ab
Add missing `.vscode/` dir for Pipet. (#161)
markmcd Oct 20, 2023
998c2f5
[Release] 0.1.3 (#164)
nickvander Oct 24, 2023
e0d216f
[Release] Docs Agent version 0.1.4 (#167)
kyolee415 Oct 30, 2023
6678542
[Release] Docs Agent version 0.1.5 (#168)
kyolee415 Nov 3, 2023
8f08c6e
Clean up labels + automation (#172)
keertk Dec 1, 2023
5ed2855
Add new chat and generate_content templates.
MarkDaoust Dec 8, 2023
911720f
[Release] Docs Agent version 0.1.6 (#182)
kyolee415 Dec 12, 2023
d27248c
fixed documentation for docs-agent demo (#183)
thesanju Dec 12, 2023
be9d976
Sync notebooks with the site. (#184)
MarkDaoust Dec 13, 2023
84c4ae4
Sync notebook content (#185)
markmcd Dec 13, 2023
d560fa9
Fix AQA notebook image (#186)
markmcd Dec 13, 2023
e581e29
use base64 encoding (#188)
MarkDaoust Dec 13, 2023
948d33a
remove keys (#189)
MarkDaoust Dec 13, 2023
8eaa0c2
Add _b64 to base64 variable names (#190)
MarkDaoust Dec 13, 2023
1697506
Remove extra cell (#191)
MarkDaoust Dec 13, 2023
60fc871
Add a sample Google Cloud Function script (#169)
markmcd Dec 14, 2023
98bc0ea
[Release] Docs Agent version 0.2.0 (#187)
kyolee415 Dec 14, 2023
d0b0272
Sync notebooks from internal (#193)
markmcd Dec 15, 2023
b051300
Move the Chroma guide out of site/, into examples/ (#194)
markmcd Dec 18, 2023
871a606
Sync notebooks. (#214)
markmcd Jan 11, 2024
9534bdc
Run nbfmt on notebooks in templates/ (#213)
markmcd Jan 11, 2024
21c1205
Added response.text accessor for Generation Configuration part too (#…
Shuvo31 Jan 11, 2024
e38d7cf
Replace pannel with modern spelling panel (#205)
nafSadh Jan 11, 2024
b9bd9ee
Add basic function calling example notebook. (#217)
MarkDaoust Jan 11, 2024
4b6230a
Lint non-website instructional notebooks (#223)
markmcd Jan 16, 2024
09a5661
Add an example for Gemini integration with LangChain (#220)
nidhinpd-YML Jan 16, 2024
7734cae
Added an example showing how to use Gemini with LangChain.js in Node …
pcoet Jan 16, 2024
454b9d0
added embedding example (#224)
pcoet Jan 17, 2024
193e211
fix typos (#225)
MarkDaoust Jan 18, 2024
315f808
Add `GenerativeModel.count_tokens` demonstration (#227)
mayureshagashe2105 Jan 19, 2024
daa0160
Define demo maintenance responsibilities and processes (#226)
keertk Jan 25, 2024
f8553f7
Bump pillow from 10.1.0 to 10.2.0 in /demos/palm/python/docs-agent (#…
dependabot[bot] Jan 25, 2024
b55a8d4
docs:proposal to be demo maintainer (#244)
Ghat0tkach Feb 1, 2024
edbe0d9
[Release] Docs Agent version 0.2.1 (#246)
kyolee415 Feb 2, 2024
2d5cfde
Typo fix in "Gemini API: Quickstart with Python" Documentation. (#247)
ZiyadF296 Feb 5, 2024
125ad3b
Update DEMO_MAINTAINERS.md (#251)
markmcd Feb 5, 2024
95cc224
Bump @babel/traverse from 7.20.13 to 7.23.2 in /demos/palm/web/list-i…
dependabot[bot] Feb 12, 2024
c393f81
Bump @babel/traverse from 7.21.3 to 7.23.2 in /demos/palm/web/textfx …
dependabot[bot] Feb 12, 2024
1797bdf
Bump react-devtools-core from 4.28.0 to 4.28.4 in /demos/palm/web/tex…
dependabot[bot] Feb 12, 2024
d49dfe4
Bump @babel/traverse in /demos/palm/web/quick-prompt (#174)
dependabot[bot] Feb 12, 2024
2782064
Update postprocess.js (#195)
eltociear Feb 12, 2024
14e4892
Bump vite from 4.1.5 to 4.5.2 in /demos/palm/web/quick-prompt (#229)
dependabot[bot] Feb 12, 2024
ce2dd2f
Bump vite from 4.4.7 to 4.5.2 in /demos/palm/web/textfx (#233)
dependabot[bot] Feb 12, 2024
4f08ad3
Bump vite from 4.1.5 to 4.5.2 in /demos/palm/web/list-it (#230)
dependabot[bot] Feb 12, 2024
54da974
docs: proposal to be demo maintainer (#248)
bupd Feb 16, 2024
ae83274
[Release] Docs Agent version 0.2.2 (#259)
kyolee415 Feb 16, 2024
1b254aa
Replace view-on text (#262)
MarkDaoust Feb 20, 2024
bfbcda9
dhuntsperger notebook sync (#263)
pcoet Feb 21, 2024
ca06e4c
Update Kaggle link in distributed_tuning.ipynb (#264)
windmaple Feb 21, 2024
5059085
Update pip install instructions for keras and keras-nlp (#265)
owahltinez Feb 21, 2024
81678a3
Add search reranking example using embeddings (#260)
mayureshagashe2105 Feb 22, 2024
66cd3eb
Web link for context document updated (#268)
nidhinpd-YML Feb 22, 2024
f6363e4
Update DEMO_MAINTAINERS.md (#273)
markmcd Feb 23, 2024
f28d6d3
clean up keras install output (#275)
AskAlice Feb 28, 2024
eab34f3
Add keywords/image_path metadata to notebooks. (#277)
markmcd Feb 29, 2024
190d722
Sync docs from Google3 to GitHub (#278)
markmcd Feb 29, 2024
3ed2ff6
Add tuning tutorial. (#279)
MarkDaoust Feb 29, 2024
26f2e26
Update README.md (#274)
markmcd Feb 29, 2024
7c94f02
Update function calling doc to use automatic function calling. (#280)
MarkDaoust Mar 4, 2024
cbf4271
Add a structured data extraction tutorial (#283)
MarkDaoust Mar 5, 2024
71cbef7
Add automatic function calling and outputs to search ranking tutorial…
MarkDaoust Mar 5, 2024
826f1d1
Add JAX Gemma docs (#286)
8bitmp3 Mar 6, 2024
45928ff
Clarify wikipedia note in reranking guide (#288)
markmcd Mar 6, 2024
c79ae78
Sync notebooks (#289)
pcoet Mar 6, 2024
6c9df91
Replay #281 (#291)
MarkDaoust Mar 7, 2024
3d83adc
Typo (#292)
MarkDaoust Mar 7, 2024
da5cfaf
Added a new ipynb notebook to show the Gemini integration with LlamaI…
nidhinpd-YML Mar 7, 2024
3cf5a79
syncing changes to Keras + Gemma get started (#293)
pcoet Mar 11, 2024
c908a50
Re-add demo to show `Count tokens` (#296)
mayureshagashe2105 Mar 14, 2024
4b2cbf8
Minor tweaks to JAX Gemma docs (#290)
8bitmp3 Mar 15, 2024
c05a8c6
Add react_gemini_prompting.ipynb (#255)
mayureshagashe2105 Mar 15, 2024
f281324
[Release] Docs Agent version 0.3.0 (#298)
kyolee415 Mar 15, 2024
639f481
[Docs Agent] Move the Docs Agent project to the new `examples/gemini/…
kyolee415 Mar 15, 2024
8347e6f
[docs-agent] Clean up Docs Agent's README.md files. (#304)
kyolee415 Mar 15, 2024
634fe4b
Update distributed_tuning.ipynb (#308)
windmaple Mar 18, 2024
0ee1ffe
reverse order of import and backend steps (#306)
pcoet Mar 18, 2024
2742e2f
Migrate Pipet to use Gemini API (#307)
markmcd Mar 18, 2024
5337b6d
Clean up some prose to align with style guide (#309)
markmcd Mar 19, 2024
2a6d8c9
Add tuning Quickstart for REST API (#310)
mayureshagashe2105 Mar 19, 2024
a85e94f
adding gemma + langchain tutorial (#311)
pcoet Mar 20, 2024
b91b55f
Add an example for Gemini integration with LangChain and Pinecone (#313)
nidhinpd-YML Mar 21, 2024
2778e38
Add H1 and intro back into Gemma+LangChain notebook (#318)
pcoet Mar 21, 2024
990741f
adding new Gemini quickstart Colab (#319)
pcoet Mar 21, 2024
701edb0
add links to quickstart (#320)
pcoet Mar 21, 2024
523ae96
Add output to Gemini API quickstart Colab (#322)
pcoet Mar 22, 2024
b7ad359
Move Pipet Code Agent example to examples/gemini (#312)
joefernandez Mar 22, 2024
b489a48
Update CODEOWNERS for docs-agent (#328)
markmcd Mar 25, 2024
44c7171
Flutter Theme Agent initial commit (#330)
khanhnwin Mar 25, 2024
ee6c13b
Update doc_search_emb.ipynb (#331)
ymodak Mar 26, 2024
8a7f6c0
Update CODEOWNERS (#336)
markmcd Mar 29, 2024
aca9be0
Fix streaming example (#321)
MarkDaoust Mar 29, 2024
955e284
[Docs Agent] Release of Docs Agent v 0.3.1 (#340)
kyolee415 Mar 29, 2024
da44a67
Update get_started.ipynb (#342)
windmaple Apr 2, 2024
71f9451
Typo in `Response` class. (#352)
markmcd Apr 4, 2024
35e3ae4
Syncing codegemma notebooks (#358)
markmcd Apr 9, 2024
576a808
Syncing notebooks (#359)
markmcd Apr 9, 2024
650a2a4
[Docs Agent] Docs Agent release version 0.3.2 (#363)
kyolee415 Apr 12, 2024
45cac49
Use tool_config and response_mime_type (#360)
MarkDaoust Apr 16, 2024
9c91576
Update CODEOWNERS for templates (#370)
markmcd Apr 17, 2024
bc11274
Move notebooks to support new information architecture on ai.google.d…
pcoet Apr 18, 2024
d216731
Add outputs to site notebooks. (#375)
markmcd Apr 19, 2024
5e876c2
Move Python function calling tutorial (#376)
pcoet Apr 19, 2024
a3346c2
updated links and display name for model tuning notebook (#377)
pcoet Apr 22, 2024
2ade5d2
Copy templates/makersuite_*.ipynb to aistudio_*.ipynb (#368)
markmcd Apr 23, 2024
9ff6efc
Update python.ipynb (#380)
bebechien Apr 23, 2024
428d2ea
Replace staging links with prod (#379)
markmcd Apr 23, 2024
321157e
Fix broken links in notebooks (#378)
markmcd Apr 23, 2024
f640390
Move prompting with media (#381)
MarkDaoust Apr 23, 2024
ebdfeda
Release of Docs Agent v.0.3.3 (#386)
kyolee415 Apr 26, 2024
c7fe55a
fixed Colab and GitHub links in prompting tutorial (#385)
pcoet Apr 29, 2024
1c7b86e
Update feature_request.yml (#390)
ymodak Apr 29, 2024
86cb898
Update anomaly_detection.ipynb (#392)
JosBecker Apr 30, 2024
fe14415
Update clustering_with_embeddings.ipynb (#393)
JosBecker Apr 30, 2024
c9abff3
update python quickstart links (#394)
singhniraj08 Apr 30, 2024
e032ce0
Update document_search.ipynb (#395)
JosBecker May 1, 2024
4c31d43
Update semantic_retrieval.ipynb (#397)
JosBecker May 2, 2024
be49fed
Document plain text mime types in prompting tutorial (#401)
pcoet May 7, 2024
ea7b62a
Auto schema (#403)
MarkDaoust May 7, 2024
3b96ee0
update the file format table in the prompting guide (#406)
pcoet May 9, 2024
ff1801f
[Docs Agent] Release of Docs Agent v.0.3.4 (#408)
kyolee415 May 10, 2024
70e4173
updating docs for video and parallel function calling (#409)
anirudh161 May 10, 2024
0697f7f
[Docs Agent] Bug fix: Fix the "index out of range" issues in Docs Age…
kyolee415 May 13, 2024
a2112bc
model-tuning/python - Fix Typo (#414)
MarkDaoust May 13, 2024
18c996e
Merge remote-tracking branch 'origin/main' into io-features
markmcd May 14, 2024
3bf1576
Updates to Prompting with Media notebook (#416)
markmcd May 14, 2024
cd88d95
Update prompting_with_media.ipynb (#417)
TYMichaelChen May 14, 2024
e33f25e
typo
MarkDaoust May 14, 2024
64987fd
Merge pull request #418 from google/io-features
MarkDaoust May 14, 2024
48e96d6
Fix broken links in semantic_retrieval.ipynb (#419)
anirudh161 May 14, 2024
ddcc219
Update prompting_with_media.ipynb (#421)
TYMichaelChen May 15, 2024
5cc6606
Update issue templates to point to the Discourse forum (#384)
keertk May 15, 2024
cbc4322
Upload PaliGemma JAX tuning notebook (#422)
joefernandez May 15, 2024
8384bed
Normalize the Python package name to "google-generativeai" (#412)
doggy8088 May 15, 2024
8912bf0
Update anomaly_detection.ipynb (#423)
JosBecker May 15, 2024
c4fef9d
Updates links to the examples (#426)
JosBecker May 16, 2024
869ebf2
Update anomaly_detection.ipynb - fixed typo (#427)
JosBecker May 16, 2024
6e796f0
Remove PaLM / MakerSuite notebooks. (#369)
markmcd May 16, 2024
e285bb4
remove max_tokens from example (#425)
MarkDaoust May 17, 2024
1ff81ee
Fix self link (#428)
MarkDaoust May 17, 2024
91ca194
update typos (#432)
singhniraj08 May 21, 2024
1827b09
Update fine-tuning-paligemma.ipynb (#430)
elisabandy May 21, 2024
695b0fd
Update model names (#434)
logankilpatrick May 24, 2024
249a811
Update distributed_tuning.ipynb (#437)
windmaple May 26, 2024
f3d3bb0
Add inference-with-keras.ipynb to PaliGemma docs (#439)
elisabandy May 28, 2024
5b11381
Revert "remove max_tokens from example (#425)" (#435)
MarkDaoust May 29, 2024
c567d0c
Update README.md (#429)
markmcd Jun 5, 2024
8bcdbeb
Qdrant similarity search guide (#389)
markmcd Jun 5, 2024
4ba3121
Use genai.protos to access the raw protos. (#446)
MarkDaoust Jun 7, 2024
0d7a174
fix link description (#449)
MarkDaoust Jun 7, 2024
d4b989c
remove references to pro-vision (#450)
MarkDaoust Jun 10, 2024
70b34b1
Fixed docs spelling (#433)
StoicInsight Jun 11, 2024
7023339
Update distributed_tuning.ipynb (#355)
windmaple Jun 11, 2024
1f03b5c
Uploading vision.ipynb as part of vision capabilities guide. (#453)
data-wombat Jun 14, 2024
c99a17a
[Docs Agent] Release of Docs Agent v 0.3.5. (#455)
kyolee415 Jun 14, 2024
569b77d
Adding backticks for code font, extra link to match edits in Markdown…
data-wombat Jun 17, 2024
675c8d6
Add Gemma Chat notebook to GitHub (#463)
anirudh161 Jun 18, 2024
2fcd37c
Add RecurrentGemma JAX Flax notebooks (#457)
8bitmp3 Jun 18, 2024
fe17edb
Add generateContent text samples for Python and rest (#467)
markmcd Jun 24, 2024
f96ca7a
Adding notes on coordinate conversion to match main docs. (#471)
data-wombat Jun 24, 2024
206b691
Renaming get_started tutorial to keras_inference (#476)
joefernandez Jun 27, 2024
c9de229
Gemma chat notebook update: add Gemma 2 model info (#478)
joefernandez Jun 27, 2024
10eca53
These have moved to the generative-ai-python repo (#480)
MarkDaoust Jul 3, 2024
3a9e817
Updated LIT + Gemma Colab for LIT v1.2. (#477)
RyanMullins Jul 9, 2024
8f66c93
Update agile_classifiers.ipynb (#481)
owahltinez Jul 10, 2024
56922d8
Update Gemma doc (#499)
bebechien Jul 31, 2024
f7962b0
update jax_inference.ipynb to use gemma 2 (#500)
jethac Jul 31, 2024
c9b8d53
update pytorch_gemma.ipynb to use gemma 2 (#501)
jethac Jul 31, 2024
dc46014
Add ShieldGemma notebooks (#502)
RyanMullins Jul 31, 2024
65e0c0f
Add Flax CodeGemma Quickstart guide to CodeGemma docs. (#486)
chiamp Jul 31, 2024
c9064b4
Update shieldgemma_on_huggingface.ipynb (#504)
bebechien Aug 1, 2024
8d6e089
Update code_assist_keras.ipynb (#503)
markmcd Aug 1, 2024
cf25b4f
Add missing </td> to table block (#506)
anirudh161 Aug 5, 2024
df4921a
`nbfmt` gemma site notebooks (#508)
markmcd Aug 7, 2024
98a8bb9
Add gemma.css to site notebooks. (#509)
markmcd Aug 7, 2024
741ebaf
Removing "external" link tags (#510)
joefernandez Aug 9, 2024
98b2114
Format and clear outputs. (#512)
MarkDaoust Aug 15, 2024
52c33ff
Remove note about tuning only being supported for 1.0. (#517)
pcoet Sep 10, 2024
582e6f8
Python tutorial improvements (SBM feedback) (#507)
Giom-V Sep 11, 2024
2083ac7
[Docs Agent] Docs Agent release version 0.3.6 (#523)
kyolee415 Sep 20, 2024
205547a
[Docs Agent] Bug fix: Prevent the AQA model from failing when its res…
kyolee415 Sep 23, 2024
99f815f
Update distributed_tuning.ipynb (#528)
windmaple Oct 8, 2024
18817ac
Corrected URL path to access the Kaggle Gemma model weights dir (#526)
RenuPatelGoogle Oct 8, 2024
82e2b3f
.Update quickstart_colab.ipynb
osorou Oct 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: >
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please post on the [Google Developers Community](https://discord.gg/google-dev-community) Discord server's #palm-api channel instead. This is a great place to interact with developers, and to learn, share, and support each other.
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please visit the [Discourse forum](https://discuss.ai.google.dev/). This is a great place to interact with developers, and to learn, share, and support each other.
- type: textarea
id: description
attributes:
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/feature_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ body:
- type: markdown
attributes:
value: >
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please post on the [Google Developers Community](https://discord.gg/google-dev-community) Discord server's #palm-api channel instead. This is a great place to interact with developers, and to learn, share, and support each other.
**Note:** If this is a support question (e.g. _How do I do XYZ?_), please visit the [Discourse forum](https://discuss.ai.google.dev/). This is a great place to interact with developers, and to learn, share, and support each other.
- type: textarea
id: description
attributes:
Expand Down
23 changes: 16 additions & 7 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,32 @@
'status:awaiting review':
- '**/*'

'demos:doc-agent':
'component:demos':
- demos/**/*

'component:documentation':
- site/**/*

'demos:docs-agent':
- demos/palm/python/docs-agent/**/*

'examples:list-it':
'demos:list-it':
- demos/palm/web/list-it/**/*

'examples:mood-food':
'demos:mood-food':
- demos/palm/web/mood-food/**/*

'examples:quick-prompt':
'demos:pipet':
- demos/palm/node/pipet-code-agent/**/*

'demos:quick-prompt':
- demos/palm/web/quick-prompt/**/*

'examples:talking-character':
'demos:talking-character':
- demos/palm/web/talking-character/**/*

'examples:text-fx':
'demos:text-fx':
- demos/palm/web/textfx/**/*

'examples:travel-planner':
'demos:travel-planner':
- demos/palm/web/travel-planner/**/*
78 changes: 72 additions & 6 deletions .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:
# Relevant PRs
pull_request:
paths:
- "site/en/**"
- "**.ipynb"
# Allow manual runs
workflow_dispatch:

jobs:
# Format all notebooks.
nbfmt:
name: Notebook format
runs-on: ubuntu-latest
Expand All @@ -28,7 +29,7 @@ jobs:
readarray -t changed_notebooks < <(git diff --name-only main | grep '\.ipynb$' || true)
else
# Manual run, check everything
readarray -t changed_notebooks < <(find site/en/ -name '*.ipynb')
readarray -t changed_notebooks < <(find -name '*.ipynb')
fi
if [[ ${#changed_notebooks[@]} == 0 ]]; then
echo "No notebooks modified in this pull request."
Expand All @@ -44,28 +45,93 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
website:
- 'site/en/**/**.ipynb'
github_docs:
- 'examples/**/**.ipynb'
- 'demos/**/**.ipynb'
templates:
- 'templates/**/**.ipynb'
- name: Install tensorflow-docs
run: python3 -m pip install -U git+https://github.com/tensorflow/docs
- name: Fetch main branch
run: git fetch -u origin main:main
- name: Lint notebooks

# Full lint for website notebooks (incl. website button)
- name: Lint website notebooks
if: steps.filter.outputs.website == 'true'
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
# Only check notebooks modified in this pull request
readarray -t changed_notebooks < <(git diff --name-only main | grep '\.ipynb$' || true)
readarray -t changed_notebooks < <(git diff --name-only main site/en/ |grep '\.ipynb$' || true)
else
# Manual run, check everything
readarray -t changed_notebooks < <(find site/en/ -name '*.ipynb')
fi
if [[ ${#changed_notebooks[@]} == 0 ]]; then
echo "No notebooks modified in this pull request."
echo "No website notebooks modified in this pull request."
exit 0
else
echo "Lint check with nblint:"
python3 -m tensorflow_docs.tools.nblint \
--styles=google,tensorflow \
--arg=repo:google/generative-ai-docs --arg=branch:main \
--arg=base_url:https://developers.generativeai.google/ \
--arg=base_url:https://ai.google.dev/ \
--exclude_lint=tensorflow::button_download \
"${changed_notebooks[@]}"
fi

# Reduced lint for notebooks hosted in GitHub
- name: Lint documentation notebooks
if: steps.filter.outputs.github_docs == 'true'
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
# Only check notebooks modified in this pull request
readarray -t changed_notebooks < <(git diff --name-only main demos/ examples/ |grep '\.ipynb$' || true)
else
# Manual run, check everything
readarray -t changed_notebooks < <(find demos/ examples/ -name '*.ipynb')
fi
if [[ ${#changed_notebooks[@]} == 0 ]]; then
echo "No GitHub doc notebooks modified in this pull request."
exit 0
else
echo "Lint check with nblint:"
python3 -m tensorflow_docs.tools.nblint \
--styles=google,tensorflow \
--arg=repo:google/generative-ai-docs --arg=branch:main \
--exclude_lint=tensorflow::button_download \
--exclude_lint=tensorflow::button_website \
"${changed_notebooks[@]}"
fi

# Basic lint for template notebooks
- name: Lint template notebooks
if: steps.filter.outputs.templates == 'true'
run: |
if [ "${{ github.event_name }}" == "pull_request" ]; then
# Only check notebooks modified in this pull request
readarray -t changed_notebooks < <(git diff --name-only main templates/ |grep '\.ipynb$' || true)
else
# Manual run, check everything
readarray -t changed_notebooks < <(find templates/ -name '*.ipynb')
fi
if [[ ${#changed_notebooks[@]} == 0 ]]; then
echo "No template notebooks modified in this pull request."
exit 0
else
echo "Lint check with nblint:"
python3 -m tensorflow_docs.tools.nblint \
--styles=google,tensorflow \
--arg=repo:google/generative-ai-docs --arg=branch:main \
--exclude_lint=tensorflow::button_download \
--exclude_lint=tensorflow::button_website \
--exclude_lint=tensorflow::button_colab \
--exclude_lint=tensorflow::button_github \
"${changed_notebooks[@]}"
fi

6 changes: 3 additions & 3 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
repo-token: ${{ secrets.GITHUB_TOKEN }}
days-before-issue-stale: 14
days-before-issue-close: 14
stale-issue-label: "stale"
close-issue-reason: completed
stale-issue-label: "status:stale"
close-issue-reason: not_planned
any-of-labels: "status:awaiting user response,status:more data needed"
stale-issue-message: >
Marking this issue as stale since it has been open for 14 days with no activity.
Expand All @@ -35,7 +35,7 @@ jobs:
Please post a new issue if you need further assistance. Thanks!
days-before-pr-stale: 14
days-before-pr-close: 14
stale-pr-label: "stale"
stale-pr-label: "status:stale"
stale-pr-message: >
Marking this pull request as stale since it has been open for 14 days with no activity.
This PR will be closed if no further activity occurs.
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
**/.DS_Store
**/.idea
**/.ipynb_checkpoints
**/.vscode
**/proofreading
**/venv
**/.python-version
**/node_modules
17 changes: 10 additions & 7 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
* @google/generative-ai-admin

demos/palm/web/talking-character @lyleaf @jayjicheng @blownhither
demos/palm/web/mood-food @lyleaf @jayjicheng
demos/palm/web/travel-planner @lyleaf @jayjicheng
demos/palm/web/list-it @mrayinteractive @aaron-wade
demos/palm/web/quick-prompt @mrayinteractive @aaron-wade
demos/palm/web/textfx @mrayinteractive @aaron-wade
demos/palm/python/docs-agent @nickvander @rundong08 @Meggin @kyolee415
# demos/palm/web/talking-character
# demos/palm/web/mood-food
# demos/palm/web/travel-planner
# demos/palm/web/list-it
# demos/palm/web/quick-prompt
# demos/palm/web/textfx
examples/gemini/python/docs-agent @nickvander @rundong08 @Meggin @kyolee415
examples/gemini/node/flutter_theme_agent/ @khanhnwin @joefernandez
demos/palm/node/pipet-code-agent @joefernandez @shilpakancharla @markmcd

templates/ @google/ai-studio-team
site/ @google/generative-ai-site-team
33 changes: 33 additions & 0 deletions DEMO_MAINTAINERS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Demo Maintenance

We have several [demo applications](https://github.com/google/generative-ai-docs/tree/main/demos/palm) hosted in this repository that are referenced in the [AI for Developers](https://ai.google.dev/develop/sample-apps) site. We're looking to the community to help maintain them.
Thank you in advance for your contributions!

## Responsibilities

While we would love to accept any meaningful contributions to the demos, some tasks we'd particularly like help with include:
1. Create a process to verify that the app works as desired after any changes are made (preferably automated, but a manual testing process works well to start)
2. Get dependencies up-to-date
3. Review and fix any outstanding issues and PRs (you can filter by the `demos:XYZ` [label](https://github.com/google/generative-ai-docs/labels?q=demos%3A))
4. Migrate from PaLM to Gemini

## Next Steps

If you're interested and commited to maintaining one of the demos, please complete the following:
- Read through the [Contributing Guide](https://github.com/google/generative-ai-docs/blob/main/CONTRIBUTING.md).
- Start work on the responsibilities above.
- Once you have some progress demonstrated, submit a PR to add your GitHub handle next to the demo you're interested in maintaining, in the section below.
- Non-responsive maintainers will be removed without notice.

## Active Maintainers

| Demo | Maintainers |
| ------------- | ------------- |
| [list-it](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/list-it) | @bupd |
| [mood-food](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/mood-food) | |
| [quick-prompt](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/quick-prompt) | |
| [talking-character](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/talking-character) | |
| [textfx](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/textfx) | |
| [travel-planner](https://github.com/google/generative-ai-docs/tree/main/demos/palm/web/travel-planner) | |
| [docs-agent](https://github.com/google/generative-ai-docs/tree/main/demos/palm/python/docs-agent) | @nickvander @rundong08 @Meggin @kyolee415 |
| [pipet-code-agent](https://github.com/google/generative-ai-docs/tree/main/demos/palm/node/pipet-code-agent) | @joefernandez @shilpakancharla @markmcd |
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,23 @@
# Google Generative AI Documentation
# Google Gemini API Website & Documentation

These are the source files for the guide and tutorials on
the [Generative AI developer site](https://developers.generativeai.google/).
the [Generative AI developer site](https://ai.google.dev/), home to
the Gemini API and Gemma.

| Path | Description |
| ---- | ----------- |
| [`site/`](site/) | Notebooks and other content used directly on ai.google.dev. |
| [`demos/`](demos/) | Demos apps. Larger than examples, typically consists of working apps. |
| [`examples/`](examples/) | Examples. Smaller, single-purpose code for demonstrating specific concepts. |



To contribute to the site documentation, please read
[CONTRIBUTING.md](CONTRIBUTING.md).

To contribute as a demo app maintainer, please read
[DEMO_MAINTAINERS.md](DEMO_MAINTAINERS.md).

To file an issue, please use the
[GitHub issue tracker](https://github.com/google/generative-ai-docs/issues/new).

Expand Down
9 changes: 9 additions & 0 deletions demos/palm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ Demos are considered to be larger than examples and consist of working apps.

Smaller, specific examples can be found in the
[`examples/`](../../examples/palm) directory.

## Updates

Some of these code projects have been updated and moved to the /examples/gemini directory, including:

- **Docs Agent** - /demos/palm/python/docs-agent/ moved to:
[/examples/gemini/python/docs-agent/](https://github.com/google/generative-ai-docs/tree/main/examples/gemini/python/docs-agent)
- **Pipet Code Agent** - /demos/palm/node/pipet-code-agent/ moved to:
[/examples/gemini/node/pipet-code-agent/](https://github.com/google/generative-ai-docs/tree/main/examples/gemini/node/pipet-code-agent)
1 change: 0 additions & 1 deletion demos/palm/java/DELETEME

This file was deleted.

Loading
Loading