ragcode

package
v1.1.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyzerManager

type AnalyzerManager struct{}

AnalyzerManager selects analyzers based on language or workspace project type.

func NewAnalyzerManager

func NewAnalyzerManager() *AnalyzerManager

NewAnalyzerManager creates a new analyzer manager.

func (*AnalyzerManager) CodeAnalyzerForProjectType

func (m *AnalyzerManager) CodeAnalyzerForProjectType(projectType string) codetypes.PathAnalyzer

CodeAnalyzerForProjectType returns a PathAnalyzer appropriate for the project type. It returns nil when no analyzer is available for the given language.

type Indexer

type Indexer struct {
	// contains filtered or unexported fields
}

Indexer indexes CodeChunks into LongTermMemory using an embedding Provider.

func NewIndexer

func NewIndexer(analyzer codetypes.PathAnalyzer, embedder llm.Provider, ltm memory.LongTermMemory) *Indexer

func (*Indexer) IndexPaths

func (i *Indexer) IndexPaths(ctx context.Context, paths []string, sourceTag string) (int, error)

IndexPaths analyzes, embeds and stores all code chunks under the given paths. collection and dimension management should be handled by the caller (Qdrant client).

type Language

type Language string

Language identifies a programming language family for code analysis.

const (
	LanguageGo   Language = "go"
	LanguagePHP  Language = "php"
	LanguageHTML Language = "html"
)

Directories

Path Synopsis
analyzers
php

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL