GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — python-docs-samples/developer-knowledge at main · Reality2byte/python-docs-samples

Expand file tree

/

developer-knowledge

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
 
 
/

developer-knowledge

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
README.md
README.md
 
 
answer_query.py
answer_query.py
 
 
answer_query_test.py
answer_query_test.py
 
 
batch_get_documents.py
batch_get_documents.py
 
 
batch_get_documents_test.py
batch_get_documents_test.py
 
 
conftest.py
conftest.py
 
 
get_document.py
get_document.py
 
 
get_document_test.py
get_document_test.py
 
 
requirements-test.txt
requirements-test.txt
 
 
requirements.txt
requirements.txt
 
 
search_document_chunks.py
search_document_chunks.py
 
 
search_document_chunks_test.py
search_document_chunks_test.py
 
 

README.md

Outline

Google Developer Knowledge API Python Samples

This directory contains Python code samples demonstrating how to use the Google Developer Knowledge API client library (google-developer-knowledge).

Setup

  1. Enable the Developer Knowledge API on your Google Cloud project:

    gcloud services enable developerknowledge.googleapis.com
  2. Install dependencies:

    pip install -r requirements.txt

Samples

  • Search Document Chunks: Search public developer documentation chunks by query (developerknowledge_search_document_chunks).
  • Get Document: Retrieve a single documentation page with full markdown content (developerknowledge_get_document).
  • Batch Get Documents: Fetch multiple documentation pages in one call (developerknowledge_batch_get_documents).
  • Answer Query: Get a grounded, cited answer to a technical question (developerknowledge_answer_query).

Running Tests

pytest
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.